| Crates.io | ethl-cli |
| lib.rs | ethl-cli |
| version | 0.1.2 |
| created_at | 2025-09-02 23:11:10.744138+00 |
| updated_at | 2025-09-09 21:39:16.945918+00 |
| description | Tools for capturing, processing, archiving, and replaying Ethereum events |
| homepage | https://github.com/withfabricxyz/ethl |
| repository | https://github.com/withfabricxyz/ethl |
| max_upload_size | |
| id | 1821783 |
| size | 158,877 |
The ethl CLI provides a command-line interface for interacting with the core features of the library, including log streaming, event archiving, and replay functionalities. It is designed to easily capture logs in a format that can be used by the core library.
cargo install ethl-cli
See how to configure RPC providers and other options
ethl --help
Extract specific events to S3. This is re-entrant, and will start with the next block from the last extraction.
ethl extract --verbose --chain-id 8453 --ankr-api-key KEY --to-block 35000000 --output s3://mybucket/8453/events \
--events "event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick)" \
--events "event Mint(address sender, address indexed owner, int24 indexed tickLower, int24 indexed tickUpper, uint128 amount, uint256 amount0, uint256 amount1)"
Watch for events
ethl cat --chain-id 8453 --ankr-api-key KEY \
--events "event Swap(address indexed sender, address indexed recipient, int256 amount0, int256 amount1, uint160 sqrtPriceX96, uint128 liquidity, int24 tick)"