Cardano explorer on top of redbit and chain-syncer
It uses tiny block_height/tx_index/utxo_index/[asset_index]
dictionary pointers to big hashes, ie. not a single hash is duplicated,
which allows for much better space efficiency and syncing speed with local node and an SSD.
Chain tip is "eventually consistent" through fork competition, ie. forks get settled eventually and superseded forks are deleted from DB.
sudo apt-get install rustup
Run cardano node locally, api at port 3001 can be change in config/cardano.toml
, for example :
nohup ./bin/cardano-node run \
--topology /opt/cardano/share/mainnet/topology.json \
--config /opt/cardano/share/mainnet/config.json \
--database-path ~/.cardano/db \
--socket-path ~/.cardano/db/node.socket \
--host-addr 0.0.0.0 \
--port 3001 &
./bin/cardano-cli query tip --mainnet --socket-path ~/.cardano/db/node.socket
Then :
cargo run
Indexing might crash especially on laptops with Node running locally and not being synced yet.
In that case, set fetching_parallelism = "low"
to not put the Node and Laptop under heavy pressure.
http://localhost:8000/swagger-ui/
Querying currently times out during historical indexing. So use it only at the chain tip sync phase
or when indexing is disabled indexer.enable = false
and we only run http server to query over existing data.
See redbit-ui