Avail light client API reference
BEFORE WE START
- The Avail light client(Avail LC) can run in two modes:
Light-clientorApp-client. We internally maintain a light client instance available for public use running in theLight-clientmode. Thus, for all methods that can be called via an LC running in theLight-clientmode, devs can use our public endpoint. - For methods that require an LC running in the
App-clientmode, you will need to run a local instance of the Avail LC. - You can check out or docs for instructions on running your own instance of the Avail light client
- The LC API is exposed by default through
localhost:7007by default.
Setting up the dev environment
Set up your dev environment with curl and Rust:
CURL
- To use the Avail light client API with
curl, you just need to havecurlinstalled on your system. You can check if it is installed by running:
CURL
curl --version- If this does not work, go to curl’s website to install it on your system.
Last updated on