Usage

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, {
  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

  • Polygon (Chain ID: 137)

  • Berachain (Chain ID: 80094)

  • Ink (Chain ID: 57073)

Destination Chains

  • Ethereum (Chain ID: 1)

  • Arbitrum (Chain ID: 42161)

  • Polygon (Chain ID: 137)

  • Berachain (Chain ID: 80094)

  • Ink (Chain ID: 57073)

  • TON (Chain ID: 30343)

  • TRON (Chain ID: 728126428)

Bridge Operations

Standard EVM Account

ERC-4337 Account

Error Handling

Complete Examples

Complete Bridge Setup

Multi-Chain Bridge Example

Bridge with Validation


Need Help?