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.
| Guide | Contents |
|---|---|
| Issue a token | MLS-01 lifecycle: issue, mint, transfer, freeze, authority |
| Issue an NFT | MLS-03 issuance and transfers |
| Staking and delegation | Create a delegation, stake, withdraw |
| Trading with orders | On-chain orders: create, discover, fill, conclude |
| Composing UTXOs | Update an order atomically: conclude input + create output |
| Atomic swap | The Mintlayer side of a BTC ⇄ ML swap with HTLCs |