Avail bridge API reference
BEFORE WE START
- The Avail VectorX bridge can be used to pass messages and tokens between
Avail DA Turing - Ethereum Sepolia (testnet bridge), and between Avail DA mainnet - Ethereum mainnet (mainnet bridge). - You can check out a complete list of endpoints required to use the bridge API in the networks page.
TWO WAYS OF USING THE BRIDGE API
- You can build and run the bridge API locally using the instructions outlined in this repo: availproject/bridge-api (opens in a new tab)
- We have included two public endpoints for the bridge API in the networks page that you can use. For the sake of simplicity that is what we will be using in this guide.
- For the sake of simplicity, we will use the Turing testnet bridge API in this guide.
Setting up the dev environment
- To use the Avail bridge API with
curl
, you just need to havecurl
installed on your system. You can check if it is installed by running:
curl --version
- If this does not work, go to curl's website (opens in a new tab) to install it on your system.