A package for routing tokens from Chain A to Chain B, and unifying multiple bridge tools into one.
What is this?
The bridging ecosystem is complex. There are often multiple tools that can be used to bridge tokens from one chain to another, and sometimes to get a token from chain A to C you need to use multiple bridging tools and route through chain B first. This package simplifies that process by creating the Unified Bridge API, a standard interface for bridging tokens from one chain to another without having to worry about the underlying tools or the underlying intermediary chains.
These are the bridges we currently support:
- Avalanche Bridge - is capable of transferring a fixed list of tokens between Ethereum and Avalanche C-Chain. See the
@avalabs/bridge-avalanche
package. - CCTP - preferred for brdiging USDC between Ethereum and Avalanche C-Chain. See the
@avalabs/bridge-cctp
package.
Future bridges we plan to support:
- Teleporter - for moving tokens between subnets.
- Cross-Chain Transfer - for moving tokens between the three Avalanche Primary Network chains (X-Chain, C-Chain, and P-Chain).
Getting Started
npm install @avalabs/bridge-unified
yarn add @avalabs/bridge-unified
pnpm add @avalabs/bridge-unified
How it works
TODO: Explain details of this api.