Skip to main content

Crate near_indexer_client

Crate near_indexer_client 

Source
Expand description

Pull complete NEAR indexer messages over HTTP without running a node.

Client::poll returns ordered rollback/application work. Process the whole Update and persist its checkpoint in the same transaction as consumer state. The client never advances a cursor or acknowledges queue delivery.

Re-exports§

pub use near_kit;

Structs§

Backoff
Retry delays for one failing request; start a new one per request.
Checkpoint
The last block durably processed by a consumer, exclusive on the next poll.
Client
Sequential, pull-based indexing; consumer speed supplies backpressure.
CryptoHash
A 256-bit hash used in NEAR Protocol.
Header
Minimal ancestry and finality context from the ordinary block RPC.
IndexerBlock
Official indexer payload with the endpoint’s explicit execution coverage.
Plan
The headers of an Update, before any block is fetched.
Retry
How to retry after one failed attempt.
RetryPolicy
Pacing for retrying one request at a time.
StreamerMessage
Resulting struct represents block with chunks
Update
Work to apply atomically with its checkpoint; dropping it acknowledges nothing.

Enums§

Error
Every error leaves consumer-owned checkpoints untouched.
ErrorKind
The class of an Error, from the endpoint’s error name where it has one.
Failure
Whether a retry is expected to clear a failure on its own.
Finality
Which head to follow. Optimistic consumers must implement rollback.