Asset Bridging
The TAC SDK enables seamless asset bridging between TON and TAC EVM chains. This guide explains how to transfer tokens between chains and work with token addresses across both ecosystems.
Asset bridging in TAC uses a lock-and-mint/burn-and-release mechanism to maintain token supply integrity across chains. When tokens move from TON to TAC, they’re locked on TON and minted on TAC. When moving back, they’re burned on TAC and released on TON.
Understanding Asset Bridging
When bridging assets between TON and TAC, there are several key operations:
- Address Mapping: Each token on one chain has a corresponding address on the other chain
- Token Transfers: Bridging tokens between chains
- Balance Management: Working with token balances on both chains
Token Address Mapping
To work with tokens across chains, you need to map addresses between TON and TAC EVM:
Working with Native Coins
You can also map native coins between chains:
Bridging Assets in Transactions
To bridge assets as part of a transaction, include them in the assets parameter of sendCrossChainTransaction:
Bridging Multiple Tokens
You can bridge multiple tokens in a single transaction:
Bridging Native TON
To bridge native TON, omit the address field:
Using Raw Amounts
If you prefer to work with raw token amounts (including decimals):
Checking Token Balances
The SDK provides methods to check jetton (token) balances on the TON side:
Getting Jetton Wallet Address
You can also get the address of a user’s jetton wallet:
Full implementation (Token Swap Example)
Here’s a complete example of bridging a token to perform a swap on an EVM DEX:
Was this page helpful?