Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rauljordan/beacon-api-checker
Tool to cross-check and stress-test Ethereum nodes' standard beacon APIs
https://github.com/rauljordan/beacon-api-checker
Last synced: 8 days ago
JSON representation
Tool to cross-check and stress-test Ethereum nodes' standard beacon APIs
- Host: GitHub
- URL: https://github.com/rauljordan/beacon-api-checker
- Owner: rauljordan
- License: mit
- Created: 2023-03-18T23:39:35.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2023-03-20T15:12:13.000Z (over 1 year ago)
- Last Synced: 2023-08-09T14:36:16.576Z (over 1 year ago)
- Language: Rust
- Size: 65.4 KB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Beacon API Checker
CLI tool for cross-checking beacon API responses across clients
## Installing
Dependencies:
- Rust 1.65.0 stable toolchain
```bash
cargo build
```## Running
```
Usage: api-checker [OPTIONS] [METRICS_HOST] [METRICS_PORT] [INTERVAL_SECONDS] [HTTP_TIMEOUT]Arguments:
[METRICS_HOST] [default: 127.0.0.1]
[METRICS_PORT] [default: 8080]
[INTERVAL_SECONDS]
[HTTP_TIMEOUT]Options:
--beacon-api-endpoints
-h, --help Print help
-V, --version Print version
```## Example
```
cargo run -- --beacon-api-endpoints="http://localhost:3501" --beacon-api-endpoints="http://localhost:3500"Compiling api-checker v0.1.0 (/home/code/rust/api-checker)
Finished dev [unoptimized + debuginfo] target(s) in 4.87s
Running `target/debug/api-checker
2023-03-19T01:58:19.414517Z INFO api_checker: Starting API checker
2023-03-19T01:58:19.414611Z INFO api_checker: Starting prometheus metrics server
2023-03-19T01:58:19.415726Z INFO api_checker: Running API checker pipeline
2023-03-19T01:58:24.850151Z INFO api_checker::endpoints: Got equal /eth/v1/beacon/validators across 2 nodes
2023-03-19T01:58:25.191757Z INFO api_checker::endpoints: Got equal /eth/v1/beacon/balances across 2 nodes
2023-03-19T01:59:19.415605Z INFO api_checker: Running API checker pipeline
2023-03-19T01:59:19.772738Z INFO api_checker::endpoints: Got equal /eth/v1/beacon/validators across 2 nodes
2023-03-19T01:59:20.094600Z INFO api_checker::endpoints: Got equal /eth/v1/beacon/balances across 2 nodes
```