SDK chevron-right Bridge Modules chevron-right bridge-usdt0-evm gear ConfigurationConfiguration options and settings for @tetherto/wdk-protocol-bridge-usdt0-evm
Bridge Protocol Configuration
The Usdt0ProtocolEvm accepts a configuration object that defines how the bridge protocol works:
Copy import Usdt0ProtocolEvm from ' @tetherto/wdk-protocol-bridge-usdt0-evm '
import { WalletAccountEvm } from ' @tetherto/wdk-wallet-evm '
// Create wallet account first
const account = new WalletAccountEvm ( seedPhrase , {
provider : ' https://eth-mainnet.g.alchemy.com/v2/your-api-key '
} )
// Create bridge protocol with configuration
const bridgeProtocol = new Usdt0ProtocolEvm ( account , {
bridgeMaxFee : 1000000000000000 n // Optional: Maximum bridge fee in wei
} ) Account Configuration
The bridge protocol uses the wallet account's configuration for blockchain access:
Copy import { WalletAccountEvm , WalletAccountReadOnlyEvm } from ' @tetherto/wdk-wallet-evm '
// Full access account
const account = new WalletAccountEvm (
seedPhrase ,
" 0'/0/0 " , // BIP-44 derivation path
{
provider : ' https://eth-mainnet.g.alchemy.com/v2/your-api-key ' ,
transferMaxFee : 100000000000000
}
)
// Read-only account
const readOnlyAccount = new WalletAccountReadOnlyEvm (
' 0x... ' , // Ethereum address
{
provider : ' https://eth-mainnet.g.alchemy.com/v2/your-api-key '
}
)
// Create bridge protocol
const bridgeProtocol = new Usdt0ProtocolEvm ( account , {
bridgeMaxFee : 1000000000000000 n
} ) Configuration Options
The bridgeMaxFee option sets a maximum limit for total bridge costs to prevent unexpectedly high fees.
Type: bigint (optional)
Unit: Wei (1 ETH = 1000000000000000000 Wei)
Examples:
The provider option comes from the wallet account configuration and specifies how to connect to the blockchain.
Type: string | Eip1193Provider
Examples:
ERC-4337 Configuration
When using ERC-4337 accounts, you can override configuration options during bridge operations:
Paymaster Token
The paymasterToken option specifies which token to use for paying gas fees in ERC-4337 accounts.
Type: string (optional)
Format: Token contract address
Example:
Network Support
The bridge protocol works with EVM-compatible networks. Change the provider URL in the wallet account configuration:
When calling the bridge method, you need to provide bridge options:
The targetChain option specifies which blockchain to bridge tokens to.
Type: string
Supported values: 'ethereum', 'arbitrum', 'polygon', 'berachain', 'ink', 'ton', 'tron'
The recipient option specifies the address that will receive the bridged tokens.
Type: string
Format: Valid address for the target chain
The token option specifies which token contract to bridge.
Type: string
Format: Token contract address on the source chain
The amount option specifies how many tokens to bridge.
Type: bigint
Unit: Base units of the token (e.g., for USD₮: 1 USD₮ = 1000000n)
The bridge protocol will throw errors for invalid configurations:
Get started with WDK in a Node.js environment
WDK Bridge USD₮0 EVM Protocol API
Get started with WDK's Bridge USD₮0 EVM Protocol API
WDK Bridge USD₮0 EVM Protocol Usage
Get started with WDK's Bridge USD₮0 EVM Protocol usage
Connect with developers, ask questions, share your projects
Report bugs, request features, and get technical help
For sensitive or private matters, contact our team directly