Skip to main content

Overview

TonModule provides native TON blockchain operations including message signing, TON and Jetton transfers, balance queries, and network details. Access it via DynamicSDK.instance().ton.

Prerequisites

Get a TON Wallet

If TON is enabled in the dashboard, the user gets a TON wallet on signup. Find it via userWallets, or create one explicitly with EmbeddedWalletChain.ton:

Get Balance

Query the TON balance for a wallet. Returned as a string (nanotons) to preserve precision.

Sign a Message

Sign a message using the connected TON wallet:

Send TON

Send TON tokens to a recipient address. Returns a TonTransactionResult containing the BOC and transaction hash.

Send Jettons

Send Jetton tokens (TON’s fungible token standard, similar to ERC-20):

Get Network Details

Query the chain ID and network name for the connected wallet:
Returned struct:
  • chainId-239 for mainnet, -3 for testnet
  • name"mainnet" or "testnet"

API Reference

Next Steps

Last modified on May 18, 2026