Skip to main content

Python Guides

These guides implement Mintlayer's main workflows with the Python SDK (pip install mintlayer), a port of the Go SDK: the wallet sub-client talks to a running wallet-rpc-daemon, the indexer client reads chain state, and the wasm module builds and signs transactions standalone, with no wallet daemon in the loop (see Developer Setup for ports and authentication).

The wallet-cli versions of the same workflows live in the command-line guides; the Go, JavaScript, and Rust 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
Wallet & signing (WASM)Generate wallets, derive addresses, sign without a daemon
Forging custom transactionsMixed inputs/outputs, protocol fees, multi-party signing, intents
Composing UTXOsUpdate an order atomically: conclude input + create output