API reference
Avail bridge API reference

Avail bridge API reference

BEFORE WE START

  1. 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).
  2. 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

  1. You can build and run the bridge API locally using the instructions outlined in this repo: availproject/bridge-api (opens in a new tab)
  2. 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.
  3. For the sake of simplicity, we will use the Turing testnet bridge API in this guide.

Setting up the dev environment

  1. To use the Avail bridge API with curl, you just need to have curl installed on your system. You can check if it is installed by running:
curl --version
  1. If this does not work, go to curl's website (opens in a new tab) to install it on your system.