Expand description
§Dat Anchor API
This crate defines the API interfaces used when interacting with the Data Anchor indexer service.
Structs§
- Blober
Data - A data structure representing a blober’s information, including the blober’s pubkey, the payer’s pubkey, and the network of the blober.
- Blobs
ByBlober - Request parameters for retrieving blobs by a specific blober’s pubkey and a time range.
- Blobs
ByPayer - Request parameters for retrieving blobs by a specific payer’s pubkey, network ID, and a time range.
- Relevant
Blober Instruction With Pubkey - A deserialized relevant blober instruction, containing the blober pubkey and the instruction.
- Relevant
Instruction With Accounts - A deserialized relevant instruction, containing the blob and blober pubkeys and the instruction.
- Time
Range - A time range with optional start and end times, used for filtering time.
- Versioned
Transaction With Inner Instructions
Enums§
- Compound
Proof - A compound proof that proves whether a blob has been published in a specific slot.
See
CompoundInclusionProofandCompoundCompletenessProoffor more information. - Relevant
Blober Instruction - Blober instructions that are relevant to the indexer.
- Relevant
Instruction - A relevant
data_anchor_bloberinstruction extracted from aVersionedTransaction.
Traits§
- Indexer
RpcClient - Client implementation for the
IndexerRpcRPC API. - Indexer
RpcServer - Server trait implementation for the
IndexerRpcRPC 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]].