Get Started
Install the bridge package, wire WalletAccountEvm, and review supported chains.
This guide shows how to install the package, create an EVM account, instantiate the bridge protocol, and review supported chains.
Install the package
Prerequisites
You can add the published package to your project from npm: @tetherto/wdk-protocol-bridge-usdt0-evm.
npm install @tetherto/wdk-protocol-bridge-usdt0-evmCreate an EVM account
You can construct a signing account using new WalletAccountEvm(seed, path, config?) from @tetherto/wdk-wallet-evm with an RPC provider:
import { WalletAccountEvm } from '@tetherto/wdk-wallet-evm'
const seedPhrase = 'abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon abandon about'
const account = new WalletAccountEvm(seedPhrase, "0'/0/0", {
provider: 'https://eth.drpc.org'
})Seed phrase: Store the mnemonic securely. Anyone with the phrase controls the funds on derived accounts.
Instantiate the bridge protocol
You can create a Usdt0ProtocolEvm instance with the new Usdt0ProtocolEvm(account, config?) constructor. Optional bridgeMaxFee caps the total bridge cost in wei (see BridgeProtocolConfig):
import Usdt0ProtocolEvm from '@tetherto/wdk-protocol-bridge-usdt0-evm'
const bridgeProtocol = new Usdt0ProtocolEvm(account, {
bridgeMaxFee: 1000000000000000n
})The account must not be read-only. Read-only accounts cannot call bridge().
Supported chains
Bridge operations use EVM source chains listed in the API reference. Destination routes include the same EVM set where USD₮0 contracts are deployed, plus Solana (EID 30168), TON (EID 30343), and TRON (EID 30420).
Source chains (EVM, targetChain keys)
| Chain | Key | Chain ID |
|---|---|---|
| Ethereum | ethereum | 1 |
| Arbitrum | arbitrum | 42161 |
| Optimism | optimism | 10 |
| Polygon | polygon | 137 |
| Berachain | berachain | 80094 |
| Ink | ink | 57073 |
| Plasma | plasma | 9745 |
| Conflux eSpace | conflux | 1030 |
| Corn | corn | 21000000 |
| Avalanche | avalanche | 43114 |
| Celo | celo | 42220 |
| Flare | flare | 14 |
| HyperEVM | hyperevm | 999 |
| Mantle | mantle | 5000 |
| MegaETH | megaeth | 4326 |
| Monad | monad | 143 |
| Morph | morph | 2818 |
| Rootstock | rootstock | 30 |
| Sei | sei | 1329 |
| Stable | stable | 988 |
| Unichain | unichain | 130 |
| XLayer | xlayer | 196 |
Arbitrum supports ERC-4337 workflows (see Bridge with ERC-4337).
Non-EVM destinations
| Network | targetChain | Endpoint ID |
|---|---|---|
| Solana | solana | 30168 |
| TON | ton | 30343 |
| TRON | tron | 30420 |
Next Steps
Run a standard EVM-to-EVM transfer with Bridge tokens, or use Bridge with ERC-4337 for gasless flows on supported networks.