Celestia Node / Indexer
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.
Setup
The docker-compose.yml
contains the following:
Make sure to replace our_password
for th DB with your password.
This yml requires having two env files in the same directory:
1) node.env
for configuring the light node:
Uncomment and use the last two lines when you need Celestia Mainnet instead of Celestia Mocha. The lists of Celestia RPC nodes can be found at https://docs.celestia.org/how-to-guides/mocha-testnet#production-rpc-endpoints and https://docs.celestia.org/how-to-guides/mainnet#production-rpc-endpoints
2) indexer.env
for configuring the blobs indexer:
Here you only need to replace 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
.
After services are started, the indexer API is available here: http://example.com:8050/api/v1/celestia/blob
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/
Last updated
Was this helpful?