More info on the Blockscout + Celestia integration is available in this blog post: https://www.blog.blockscout.com/celestia-superhighway-supporting-high-data-availability-on-blockscout/
How to run a Celestia light node with a Celestia blobs indexer
We’ll use Docker Compose to run everything we need: Celestia Light node, Blobs indexer, and Postgres DB for it.Please note that the Celestia node requires linux/amd64 or linux/arm64 OS
Setup
Thedocker-compose.yml
contains the following:
our_password
for the DB with your password.
This yml requires having two env files in the same directory:
1) .env
for configuring the light node:
The lists of Celestia RPC nodes can be found at:
- https://docs.celestia.org/how-to-guides/mocha-testnet#production-rpc-endpoints
- https://docs.celestia.org/how-to-guides/mainnet#production-rpc-endpoints
indexer.env
for configuring the blobs indexer:
our_password
with the DB password defined in the docker-compose.yml
.
Usage
- To start the services, run
docker compose up -d
. - To see the last indexer logs, run
docker logs -n 100 da-indexer
. - To see the last node logs, run
docker logs -n 100 celestia-light-node
.
Please note, the node needs some time to sync with other Celestia nodes and download data.
- Examples and descriptions for the API are available in project’s readme: https://github.com/blockscout/blockscout-rs/tree/main/da-indexer#readme
- More detailed tutorials: https://docs.celestia.org/
- Additional info on the integration: https://www.blog.blockscout.com/celestia-superhighway-supporting-high-data-availability-on-blockscout/