What it will do
@uzolabs/sdk/bridge is planned for SDK 0.4.0.
The function names come from the SDK plan. Parameters and return types aren’t final. Input that fails a check, such as a paused bridge or an amount outside the limits, is planned to throw
BridgeValidationError.
BOT Chain is the only source in v1
The first version builds deposits from BOT Chain only. Bridging into BOT Chain from Ethereum, BNB Smart Chain or Tron starts on those chains, through gateway contracts whose ABIs aren’t published. The SDK lists their addresses inEXTERNAL_BRIDGE so you can watch for transfers, but it doesn’t call them.
Do it today
The SDK already ships the bridge router address for both networks,botBridgeAbi and USDT_RESOURCE_ID. These guides use them and were run on testnet:
Limits and fees
Read pause state, limits, fees and destinations.
Bridge USDT out
Approve and deposit from a script.
Track a transfer
Follow a deposit to the destination chain.
How the bridge works
Router, relayers, fees and refunds.