TonConnect on Tetra

TonConnect Integration Notes

1. Supported Library Versions

Use the following TonConnect library versions:

{
  "@tonconnect/sdk": "^3.4.1",
  "@tonconnect/ui": "^2.4.1"
}

2. Setting Network on Wallet Connection

When connecting a wallet, you must explicitly set the target network using tonConnectUi.setConnectionNetwork.

Use the following chainId values:

  • TetraChain: 662387

  • TON Mainnet: -239

Example:

tonConnectUi.setConnectionNetwork(662387); // TetraChain

3. Sending Transactions

When calling sendTransaction, always pass the chainId via the network parameter to ensure the transaction is sent to the correct network.

Example:

Last updated