Make sure you enable TON chain in the Dynamic dashboard.Documentation Index
Fetch the complete documentation index at: https://docs.dynamic.xyz/docs/llms.txt
Use this file to discover all available pages before exploring further.
Installation
Default TON extension
If you wish to support TON external wallets (via TonConnect) and Dynamic embedded wallets, you can add the default TON extension to your client using theaddTonExtension method.
Standalone TON extensions
If you want to be more granular, you can add the standalone TON extensions individually to your client.TonConnect extension
WaaS TON extension
Combining extensions
You can combine as many extensions as you want to support all the wallets you want to support.TonConnect manifest
When using TonConnect (viaaddTonExtension or addTonConnectExtension), the SDK expects a
tonconnect-manifest.json file to be served at your app’s origin. The URL is derived from
the client’s metadata.universalLink setting, which defaults to window.location.origin:
metadata.universalLink
option when creating the client:
public/tonconnect-manifest.json):
Browser polyfill for Buffer
The TON ecosystem libraries (@ton/core, @ton/crypto) use Node.js’s Buffer internally.
If you’re running in a browser environment where Buffer is not available globally, you’ll need
to add a polyfill.
In your application’s entry point (before any TON-related code runs), add the following:
This is only needed in browser environments. Node.js has
Buffer available
globally by default.Related functions
- isTonWalletAccount - Check if a wallet account is a TON account
- sendTon - Send native TON
- sendJetton - Send Jetton tokens
- sendTransaction - Send a custom TON transaction
- generateTonConnectProof - Generate a TonConnect proof for authentication