The polling service for Arweawve blocks
```
cargo install thegarii thegarii -h thegaril 0.0.3 info@chainsafe.io env arguments for CLI
USAGE: thegarii [FLAGS] [OPTIONS]
FLAGS: -d, --debug Activate debug mode -h, --help Prints help information -V, --version Prints version information
OPTIONS:
-B, --batch-blocks
| KEY | DEFAULT_VALUE | DESCRIPTION |
|---------------|--------------------------|---------------------------------------------|
| ENDPOINTS | "https://arweave.net"
| for multiple endpoints, split them with ',' |
| BATCH_BLOCKS | 50
| how many blocks batch at one time |
| CONFIRMS | 20
| irreversibility condition |
| PTR_PATH | $APP_DATA/thegarii/ptr
| the file stores the block ptr for polling |
| retry | 10
| retry times when failed on http requests |
| timeout | 120_000
| timeout of http requests |
Build the source code with cargo build --release --features full
.
To config the number of nodes to pull blocks from, define the env variable: ENDPOINTS
, i.e. export ENDPOINTS=http://178.62.222.154:1984,http://localhost:1984
.
The default node is https://arweave.net/
.
To start estimating the total ingestion time using the following command:
shell
./target/release/thegarii poll -h
To compile, set env variables and run in one go, you can use:
shell
ENDPOINTS=http://178.62.222.154:1984,http://localhost:1984 cargo run --release -- poll -h