{"id":51547188,"url":"https://github.com/scroll-tech/reth-witness-indexer","last_synced_at":"2026-07-09T19:30:51.577Z","repository":{"id":366724350,"uuid":"1118152143","full_name":"scroll-tech/reth-witness-indexer","owner":"scroll-tech","description":"A Reth Execution Extension (ExEx) that indexes Ethereum execution witnesses for stateless validation.","archived":false,"fork":false,"pushed_at":"2026-02-16T17:47:00.000Z","size":220,"stargazers_count":3,"open_issues_count":3,"forks_count":1,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-23T04:29:04.762Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/scroll-tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-17T10:36:45.000Z","updated_at":"2026-05-19T12:45:27.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/scroll-tech/reth-witness-indexer","commit_stats":null,"previous_names":["scroll-tech/reth-witness-indexer"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/scroll-tech/reth-witness-indexer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scroll-tech%2Freth-witness-indexer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scroll-tech%2Freth-witness-indexer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scroll-tech%2Freth-witness-indexer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scroll-tech%2Freth-witness-indexer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/scroll-tech","download_url":"https://codeload.github.com/scroll-tech/reth-witness-indexer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/scroll-tech%2Freth-witness-indexer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35311290,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-09T02:00:07.329Z","response_time":57,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-07-09T19:30:50.718Z","updated_at":"2026-07-09T19:30:51.564Z","avatar_url":"https://github.com/scroll-tech.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reth Witness Indexer\n\nA Reth [Execution Extension (ExEx)](https://reth.rs/exex/overview) that indexes Ethereum [execution witnesses](https://docs.rs/alloy-rpc-types-debug/latest/alloy_rpc_types_debug/struct.ExecutionWitness.html) for stateless validation.\n\n## Overview\n\nHistorical state reconstruction can be a bottleneck. As a result, extracting execution witnesses for historical blocks can be extremely slow, and often requests can timeout.\n\nThis project captures execution witnesses as blocks are committed to the chain and stores them in a database (reth-db/MDBX). These indexed witnesses can then be retrieved via JSON-RPC.\n\n### Features\n\n- **Real-time indexing**: Extracts witnesses by re-executing blocks against parent state\n- **Reorg handling**: Automatically removes witnesses for reverted blocks\n- **Pruning**: Two strategies available:\n  - **Periodic**: Keeps only the N most recent blocks\n  - **Event-driven**: Prunes up to a block number received via channel (useful for zk-rollups finalizing on L1)\n- **JSON-RPC API**: Query witnesses by block number or hash (`indexed_witnessByNumber`, `indexed_witnessByBlockHash`)\n\n### Modules\n\n| Module   | Description                                                   |\n|----------|---------------------------------------------------------------|\n| `db`     | Database trait and reth-db implementation for witness storage |\n| `exex`   | Core `WitnessIndexer` ExEx that processes chain notifications |\n| `pruner` | Background pruning task with configurable policies            |\n| `rpc`    | JSON-RPC server under the `indexed` namespace                 |\n| `error`  | Error types for RPC operations                                |\n\n## Build\n\n```bash\n# Build library\ncargo build\n\n# Build binary\ncargo build --release --bin reth-witness-indexer --features=build-binary\n```\n\n## Test\n\n```bash\n# Run all tests\nRUST_LOG=reth-witness-indexer=trace cargo test --all-features\n\n# Run tests with reproducible randomness\nSEED=12345 cargo test --all-features\n```\n\n## Usage\n\nThe binary can be run with standard reth CLI arguments plus indexer-specific options:\n\n```bash\nreth-witness-indexer node \\ # other `reth node` CLI options\n  --reth-witness-indexer.start-block \u003cBLOCK_NUMBER\u003e \\\n  --reth-witness-indexer.max-backfill-distance \u003cN_BLOCKS\u003e \\\n  --reth-witness-indexer.include-headers \\\n  --reth-witness-indexer.pruner.interval \u003cSECONDS\u003e \\\n  --reth-witness-indexer.pruner.n-recent \u003cN_BLOCKS\u003e\n```\n\n## Dependencies\n\nBuilt against [reth v1.10.2](https://github.com/paradigmxyz/reth/releases/tag/v1.10.2).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscroll-tech%2Freth-witness-indexer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fscroll-tech%2Freth-witness-indexer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fscroll-tech%2Freth-witness-indexer/lists"}