Crate data_anchor_api

Source
Expand description

§Dat Anchor API

This crate defines the API interfaces used when interacting with the Data Anchor indexer service.

Structs§

BloberData
A data structure representing a blober’s information, including the blober’s pubkey, the payer’s pubkey, and the network of the blober.
BlobsByBlober
Request parameters for retrieving blobs by a specific blober’s pubkey and a time range.
BlobsByPayer
Request parameters for retrieving blobs by a specific payer’s pubkey, network ID, and a time range.
RelevantBloberInstructionWithPubkey
A deserialized relevant blober instruction, containing the blober pubkey and the instruction.
RelevantInstructionWithAccounts
A deserialized relevant instruction, containing the blob and blober pubkeys and the instruction.
TimeRange
A time range with optional start and end times, used for filtering time.
VersionedTransactionWithInnerInstructions

Enums§

CompoundProof
A compound proof that proves whether a blob has been published in a specific slot. See CompoundInclusionProof and CompoundCompletenessProof for more information.
RelevantBloberInstruction
Blober instructions that are relevant to the indexer.
RelevantInstruction
A relevant data_anchor_blober instruction extracted from a VersionedTransaction.

Traits§

IndexerRpcClient
Client implementation for the IndexerRpc RPC API.
IndexerRpcServer
Server trait implementation for the IndexerRpc RPC API.

Functions§

deserialize_blober_instructions
Deserialize blober instructions from a transaction, returning a vector of RelevantBloberInstructionWithPubkey.
deserialize_relevant_instructions
Deserialize relevant instructions from a transaction, given the indices of the blob and blober accounts in the transaction.
extract_relevant_instructions
Extract relevant instructions from a list of transactions.
get_account_at_index
Performs the double-lookup required to find an account at a given account index in an instruction. This is required because the accounts are not stored in the instruction directly, but in a separate account list. It is computed as payload.account_keys[instruction.accounts[index]].