General
A class to handle reading and writing general ledger information.
Functions
Link copied to clipboard
open suspend override fun getBlockByHeight(ledgerHeight: Long, withTransactions: Boolean?): Result<Block, AptosSdkError>
Retrieves a block by its height.
Link copied to clipboard
open suspend override fun getBlockByVersion(ledgerVersion: Long, withTransactions: Boolean?): Result<Block, AptosSdkError>
Retrieves a block by its transaction version number.
Link copied to clipboard
Retrieves the chain ID of the network.
Link copied to clipboard
open suspend override fun getChainTopUserTransactions(limit: Int): Result<GetChainTopUserTransactionsQuery.Data?, AptosIndexerError>
Queries the indexer for the top user transactions by gas unit.
Link copied to clipboard
Queries the indexer for the last ledger version it has successfully processed.
Link copied to clipboard
Retrieves the latest ledger information from a fullnode.
Link copied to clipboard
open suspend override fun getProcessorStatus(processorType: ProcessorType): Result<GetProcessorStatusQuery.Data?, AptosIndexerError>
Queries the status of a specific indexer processor.