Skip to content

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

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

starknet-graph/jsonrpc-to-firestark

Repository files navigation

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.

About

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

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published