XO implementation and feedback

Mesh limit orders on XO, Cham wallet signing, Bitcoin Cash covenants, and verification evidence.

Mesh gives Bitcoin Cash limit orders an inspectable XO template. The template exposes the order terms and available actions, the Cham extension signs the requested inputs, and the BCH covenant enforces payment and recovery on-chain.

Implementation and source code

Layer What we built Source
XO template package mesh-limit-order-v1 defines maker and resolver roles, a content-addressed template identifier, action builders, and an inspectable invitation format. The package also contains a template registry and a bch_signTransaction adapter. Template repository · Limit-order template · Signing adapter · Invitation format
Cham wallet extension The signing bridge handles BCH transaction requests. Open Orders discovers orders and prepares in-wallet cancel or refund actions using the template package. The extension checkout references sibling wallet-core and XO template packages for local builds. Extension repository · Order discovery and recovery · Signing code · Wallet test harness
Bitcoin Cash covenants The original Mesh limit-order covenant is the migration baseline. Its on-chain rules govern a fill, maker-authorized cancellation, and recovery after expiry. Blaze also has separate contracts for launch curves, graduation markets, and vesting. Contracts repository · Original limit-order covenant · Blaze contract tree

How the limit order works

  1. Create and fund. The maker commits the assets, price terms, payout destination, and expiry. Funding the covenant produces the Bitcoin Cash output that later actions will spend.
  2. Inspect and prepare. The XO invitation carries the order context. The action builder uses the live outpoint to construct a transaction for the selected fill, cancellation, or refund.
  3. Review and sign. Cham handles approval and signing for the relevant inputs. A resolver can fill an eligible order. The maker can authorize an early cancellation. Once the order expires, a refund can return funds to the maker under the covenant's rules.
  4. Verify the result. The BCH transaction and its outputs establish whether the order filled or funds returned to the maker. The template and invitation give a wallet enough context to explain the action before signing.

How XO fits into Blaze and Mesh

Blaze gives wallets, communities, and launchpads reusable CashToken issuance, bonding curves, and graduation into fee-bearing Mesh markets. It follows the model used by launchpads such as Bags.fm and Jupiter Studio on Meteora DBC, where each product controls its own creator experience and uses shared launch infrastructure. The Mesh integration is designed to make verified graduated markets available for discovery and swap routing. XO can help coordinate individual covenant actions within that system. Blaze overview · Mesh integration · Meteora DBC · Meteora launchpad examples

Native XO compatibility

An offline check against the parsers used by XO Engine 0.1.0-next.17612568780 rejected both Mesh artifacts. The template still needs the native action and transaction declarations. The invitation must be generated by XO Engine so it carries the native action identifier and commit list. The local wallet and Bitcoin Cash VM tests passed. XO Engine release

Migrate to XO — Executed limit order on Chipnet

This section documents the complete lifecycle of a Mesh limit-order migration to XO, with both opening and refund actions confirmed on Chipnet.

Template

Field Value
Name Mesh Limit Order (Chipnet migration)
Version 1.1.1
Template identifier 318d6878aefff327ccc9e9b2e2683d90b184fc0b2cfebf37954b98e68f329b7b
Template JSON Download native template
Supported VMs BCH_2025_05, BCH_2026_05
Roles Maker (funds the order, retains early cancellation rights), Refund sponsor (pays the network fee after expiry)
Actions openOrder — fund a P2SH32 limit-order output with BCH; refundExpired — return all locked BCH to the maker after expiry
Prior art Original Mesh LimitOrderSwap.cash

Executed opening invitation

Field Value
Invitation ID d12f010dc211ff40e3eff6e62e82d1f0
Action openOrder
Invitation export Download signed opening invitation
Transaction hash bb585dc25fd5dc460f051a7a3ec6c10a31fb32e96dd8e62858934b8f80be79a9
Block 345754
Covenant output Index 1, 10,000 test satoshis locked in P2SH32
Change output Index 0, 24,600 test satoshis returned to the XO wallet
Network fee 400 satoshis
Broadcast signed by tpubDEiMqFwvm6pSgPbWqrAneT9xB7dpSWZTHw8trvRaB9DEmxCSjBAq8HUpDHCHvsL9GNAqqU3QBK3pBBYWMZCHFCnviRv3p3rj3F46adz6okk

Executed refund invitation

Field Value
Invitation ID 6024959a70776e63f5743e70a3d861c5
Action refundExpired
Invitation export Download signed refund invitation
Transaction hash dd1570049e16ecf32727b670ee7bb87911e807cfa6cbf971f8ac71f1532c1ff0
Block 345760
Maker refund output Index 0, 10,000 test satoshis returned to the maker
Network fee 700 satoshis
Locktime 1795597163 (Unix seconds, past expiry)
BCH VM verification Pass — independent VM and chain checks confirm the covenant was spent correctly
Covenant fully spent Yes — no unspent outputs remain at the contract address
Broadcast signed by tpubDEiMqFwt51tQ7XMNUPDJxrk2T8rPU1dPaLQfcmRhEN5SUJFoKJ5D4FjNGbkEUwgUXToFo8CCtDxw2znwUHRNCPdpdogL978EjkZoVhwwUv3

Wallet funding

Field Value
Funding transaction 7144e1dd9f55aff44fef7c26fbbc871fbd8e4ce36a96412ff48cdb2c76d87eb2
Amount 35,000 test satoshis to the disposable XO account

Submission link pack for GP (Migrate to XO)

# Required item Link
1 Template Native limit-order template v1.1.1 JSON
2 Executed invitation Opening invitation + Refund invitation
3 Corresponding transaction Opening tx + Refund tx
4 Prior art Original Mesh LimitOrderSwap.cash

Reproduce or inspect

  1. Open the XO Debug Tool with a disposable Chipnet account and import the native template JSON above.
  2. Open Inspect Invitation and load the opening invitation export. Verify the Open order action, template ID, signed commits, broadcast result, and transaction hash bb585d….
  3. Load the refund invitation export. Verify the Refund expired action, the same template ID, the locktime past the order expiry, and the refund transaction hash dd1570….
  4. Open both confirmed transactions on the Chipnet explorer. Match the opening output to the committed covenant script and amount. Match the refund output to the maker's P2PKH address.

Test and verify

Environment Available evidence
Local BCH VM Run npm ci and npm test in the XO template checkout. Nine tests cover the template identity, deterministic locking script, fill, cancellation, expiry, and invitation encoding. Template tests
Local Cham extension Both wallet-side tests pass for the XO limit-order signing path. From a checkout with the sibling dependencies installed, run npm test -- tests/unit/xo-limit-order.test.ts. Extension tests
XO on Chipnet Both Open order and Refund expired invitations were executed and confirmed. The covenant is fully spent. See the evidence tables above for transaction and invitation links.
Blaze on Chipnet The BCH-quoted E1 launch has 15 confirmed transactions covering CashToken issuance, curve trading, graduation, post-graduation trading, and fee claims. E1 transaction record
Mesh on mainnet Use the existing Mesh pool flow to try the separate wallet-connected mainnet experience. A verified XO order or Blaze launch on mainnet is still pending. Mesh pool app

Developer feedback

Team-authored feedback pending. This section is reserved for the team's account of what worked, what was difficult, and what would improve the XO developer workflow. Migrate to XO requirements · XO architecture