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.
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.
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.
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.
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.
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.
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
Implemented limit-order path. The XO template, signing adapter, and extension source are published. The package also contains Dutch auction and Mesh pool template entries, which have separate lifecycle verification pending. Template source
Proposed Blaze vesting path. An XO invitation could let a beneficiary inspect a fixed CashToken tranche and coordinate its claim after the committed unlock height. The CashScript vesting covenant has local VM coverage. A verified XO-engine execution and confirmed chain proof for this action are pending. Vesting covenant · Vesting VM tests
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.
Open the XO Debug Tool with a disposable Chipnet account and import the native template JSON above.
Open Inspect Invitation and load the opening invitation export. Verify the Open order action, template ID, signed commits, broadcast result, and transaction hash bb585d….
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….
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