This part of the project aims to run Avail DA blockchain locally.
To achieve interoperability, the project requires setting up three nodes and a DA server:
- Avail DA node: Official client for the Avail blockchain.
- Avail light node: DA light client which listens on Avail network for finalized blocks.
- Avail light Bootstrap node: Bootstrap node for Avail light client.
- Avail DA server
Docker and Docker Compose are required to run the services. Ensure you have Docker installed on your system before proceeding.
To set up and run Avail DA, execute the following command from the root directory:
make avail-da
This command will handle the necessary setup and execution steps for Avail DA.
To configure and run Avail DA with Goldberg's Testnet, run the following command from the root directory:
make avail-da-testnet
This command will create a single Light Node docker with the necessary configuration to use this testnet. Unlike the local Avail DA, it will listen on port 8002.
After setting up Avail DA, you can interact with the API Light Node by sending requests to port 8001. Here are a couple of example requests:
curl http://127.0.0.1:8001/v1/latest_block
Response:
{"latest_block":168}
curl http://127.0.0.1:8001/v2/blocks/158
Response:
{"status":"finished","confidence":93.75}
You can use this explorer.
This project is based on the following articles and resources: