Blockrs is a TUI for observing chain data.
Use cargo to install the crate:
cargo install blockrs
blockrs -h
Currently only supports Ethereum RPC:
blockrs https://rpc.flashbots.net
If you want to watch account balances, you need to provide a list via the config file. For example:
cat <<EOF > /tmp/config.yaml
tick_rate: 5s
addresses:
- 0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045
EOF
export BLOCKRS_CONFIG=/tmp/
blockrs https://rpc.flashbots.net
The app will run in a mode which follows the HEAD of the chain by default.
If you hit j/k/Up/Down at any time, the app will stop following head and allow you to observe any previously-processed block.
To re-enter follow mode, hit f/Space/Enter.
The following features are required for 1.0:
Interactive mode (stop tail, select block)- Add implementations for other
ChainProviderinstances beyond Ethereum RPC
Ratatui is a fantastic crate for creating TUI applications in Rust. This project is based on its template found here.
