TON
TON JSON-RPC Methods
Network / Chain Information
| CAIP-2 | Chain ID | Name | RPC Endpoint | Namespace |
|---|---|---|---|---|
ton:-239 | -239 | TON Mainnet | https://toncenter.com/api/v2/jsonRPC | ton |
ton:-3 | -3 | TON Testnet | https://testnet.toncenter.com/api/v2/jsonRPC | ton |
RPC Methods
Wallets must support the following JSON-RPC methods over WalletConnect sessions. No events are required.ton_sendMessage
Submit one or more transaction messages to the TON network.Request
Example Request
Success Response
Error Response
ton_signData
Sign an off-chain payload (text, binary, or cell) for authentication or verification by dApps.Request
Example Request
Success Response
Error Response
Notes & Considerations
- If
fromis omitted, the wallet should prompt the user to select an address. - All requests and responses must comply with JSON-RPC structure (
id,jsonrpc, etc.). - Signature verification can be done using
ed25519.verifyon the original bytes. stateInitsupport is needed when your wallet supports contract deployment flows.- The
domainfield in responses indicates the originating application (dApp) domain.