Skip to main content

Rust Guides

These guides implement Mintlayer's main workflows with the Rust SDK (mintlayer-sdk). The wallet sub-client talks to a running wallet-rpc-daemon, the indexer client reads chain state, and the crypto module builds and signs transactions natively, with no wallet daemon in the loop. Start with the SDK overview for features and the mandatory parity-scale-codec patch when using the crypto feature.

The wallet-cli versions of the same workflows live in the command-line guides; the Go and JavaScript versions in their own sections.

GuideContents
Issue a tokenMLS-01 lifecycle: issue, mint, transfer, freeze, authority
Issue an NFTMLS-03 issuance and transfers
Staking and delegationPool lifecycle and delegations
Trading with ordersOn-chain orders: create, discover, fill, conclude
Atomic swapThe Mintlayer side of a BTC ⇄ ML swap with HTLCs

For full-custody transaction building beyond these recipes, see Building transactions in the SDK reference; runnable programs live in the repository under examples/.