Skip to main content

JavaScript Guides

These guides implement Mintlayer's main workflows with the JavaScript SDK (npm install @mintlayer/sdk). In the browser the Client talks to the Mojito wallet extension; in Node.js use the standalone account providers. Start with Getting Started; the Client API is detailed in SDK Client.

The wallet-cli versions of the same workflows live in the command-line guides; the Go versions in the Go guides, the Rust versions in the Rust guides, and the Python versions in the Python guides.

GuideContents
Issue a tokenMLS-01 lifecycle: issue, mint, transfer, freeze, authority
Issue an NFTMLS-03 issuance and transfers
Staking and delegationCreate a delegation, stake, withdraw
Trading with ordersOn-chain orders: create, discover, fill, conclude
Composing UTXOsUpdate an order atomically: conclude input + create output
Atomic swapThe Mintlayer side of a BTC ⇄ ML swap with HTLCs