githubEdit

book-openUsage

Installation, quick start, and usage examples for @tetherto/wdk-protocol-bridge-usdt0-evm

Installation

To install the @tetherto/wdk-protocol-bridge-usdt0-evm package, follow these instructions:

npm install @tetherto/wdk-protocol-bridge-usdt0-evm

Quick Start

Setting Up a Bridge Protocol

import Usdt0ProtocolEvm from '@tetherto/wdk-protocol-bridge-usdt0-evm'
import { WalletAccountEvm } from '@tetherto/wdk-wallet-evm'

// Create a wallet account first
const account = new WalletAccountEvm(seedPhrase, "0'/0/0", {
  provider: 'https://rpc.mevblocker.io/fast'
})

// Create bridge protocol instance
const bridgeProtocol = new Usdt0ProtocolEvm(account, {
  bridgeMaxFee: 1000000000000000n // Optional: Maximum bridge fee in wei
})

Basic Bridge Operation

Getting Bridge Quotes

Supported Chains

Source Chains (EVM)

  • Ethereum (Chain ID: 1)

  • Arbitrum (Chain ID: 42161) - ERC-4337 support

  • Optimism (Chain ID: 10)

  • Polygon (Chain ID: 137)

  • Berachain (Chain ID: 80094)

  • Ink (Chain ID: 57073)

  • Plasma (Chain ID: 9745)

  • Conflux eSpace (Chain ID: 1030)

  • Corn (Chain ID: 21000000)

  • Avalanche (Chain ID: 43114)

  • Celo (Chain ID: 42220)

  • Flare (Chain ID: 14)

  • HyperEVM (Chain ID: 999)

  • Mantle (Chain ID: 5000)

  • MegaETH (Chain ID: 4326)

  • Monad (Chain ID: 143)

  • Morph (Chain ID: 2818)

  • Rootstock (Chain ID: 30)

  • Sei (Chain ID: 1329)

  • Stable (Chain ID: 988)

  • Unichain (Chain ID: 130)

  • XLayer (Chain ID: 196)

Destination Chains

  • All supported EVM source chains (token-dependent by deployed contracts)

  • Solana (EID: 30168)

  • TON (EID: 30343)

  • TRON (EID: 30420)

Bridge Operations

Standard EVM Account

ERC-4337 Account

Non-EVM Destination (Solana)

Non-EVM Destination (TON / TRON)

BridgeOptions Overrides

Error Handling

Complete Examples

Complete Bridge Setup

Multi-Chain Bridge Example

Bridge with Validation


Need Help?