Expand description
§InIndexer
InIndexer is a NEAR indexer framework.
§Features
- Different sources of near data: neardata (implemented),
AWS Lake (only consecutive ascending ranges
are supported), local file storage for backfilling (planned), you can add your own sources by implementing
MessageStreamer
ormessage_provider::MessageProvider
trait. - Simple indexer interface: you only need to implement
Indexer
trait and handle receipts, blocks, transactions, or transactions with all receipts included, at a cost of some preprocessing overhead (around 1-2ms in release mode with 80-100 TPS on Slime’s PC, this can be disabled inIndexerOptions::preprocess_transactions
). - Retries, performance warnings, skipped blocks handling, and other features are built-in, so you can focus on your indexer logic.
- Auto-Continue: the indexer will save the last processed block height to the file and continue from it on the next run. Includes a Ctrl+C handler for graceful shutdown.
- Some helper functions and types for working with logs, balances, and other commonly used functionality in
near_utils
.
§Feature flags
neardata
: Neardata data sourcelake
: NEAR Lake data source
This crate only works with tokio runtime.
Re-exports§
pub use near_indexer_primitives;