Overview
TheTonModule provides native TON blockchain operations including message signing, TON and Jetton transfers, balance queries, and network details. Access it via DynamicSDK.instance.ton.
Prerequisites
- Dynamic SDK initialized (see Quickstart)
- User authenticated (see Authentication)
- TON wallet available (see Wallet Creation)
Get Balance
Query the TON balance for a wallet.Sign a Message
Sign a message using the connected TON wallet.Send TON
Send TON tokens to a recipient address. Returns a map containing theboc (bag of cells) and hash of the transaction.
Exchanges routinely share one TON deposit address across many users and map an incoming deposit to a user via the transaction’s text comment. Pass that identifier as
comment (native TON) or forwardPayload (Jettons), or the deposit won’t be credited.Send Jettons
Send Jetton tokens (TON’s fungible token standard, similar to ERC-20) to a recipient.Get Network Details
Query the network information for the connected wallet.chainId- The chain identifier (e.g.,-239for mainnet,-3for testnet)name- The network name (e.g.,mainnet,testnet)
Complete Example
API Reference
Next Steps
- Bitcoin Operations - Bitcoin blockchain operations
- SUI Operations - SUI blockchain operations
- Token Balances - Multi-chain balance queries