Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 1.16 KB

README.md

File metadata and controls

18 lines (10 loc) · 1.16 KB

jsonrpc-to-firestark

Extract logs expected by firehose-starknet from a trusted JSON-RPC source.

This tool exists because it could be slow to sync a Starknet node from scratch, which is currently the only way to bootstrap a firehose-starknet deployment. This tool makes calls to the JSON-RPC endpoint offered by a trusted synced node, and emits the exact same format as an instrumented client node would do.

Checkpoint file

This tool keeps track of the sync progress through a checkpoint file, specified by the --checkpoint command line option or CHECKPOINT_FILE environment variable. The content of the checkpoint file is updated every 50 blocks, which means it's likely that some blocks might be sycned more than once when the tool restarts. This is fine as Firehose handles duplicated blocks without issue.

License

Licensed under either of

at your option.