General

interface General

General API namespace. This interface provides functionality to reading and writing general information.

Inheritors

Properties

Link copied to clipboard
abstract val config: AptosConfig

Functions

Link copied to clipboard
abstract suspend fun getBlockByHeight(ledgerHeight: Long): Option<Block>

Queries for block by height

Link copied to clipboard
abstract suspend fun getBlockByVersion(ledgerVersion: Long): Option<Block>

Queries for block by transaction version

Link copied to clipboard
abstract suspend fun getChainId(): Option<Long>

Queries for the chain id

Link copied to clipboard

Queries top user transactions

Link copied to clipboard
abstract suspend fun getIndexerLastSuccessVersion(): Option<Long>

Queries for the last successful indexer version

Link copied to clipboard
abstract suspend fun getLedgerInfo(): Option<LedgerInfo>

Queries for the Aptos ledger info

Link copied to clipboard
abstract suspend fun getProcessorStatus(processorType: ProcessorType): Option<ProcessorStatus>

Query the processor status for a specific processor type.

Link copied to clipboard
inline suspend fun <T> General.getTableItem(handle: String, data: TableItemRequest, param: LedgerVersionQueryParam? = null): T
Link copied to clipboard
inline suspend fun <T> General.queryIndexer(query: GraphqlQuery): Option<T>

A generic function for retrieving data from Aptos Indexer.

Link copied to clipboard
inline suspend fun <T : List<MoveValue>> General.view(payload: InputViewFunctionData, bcs: Boolean = true, ledgerVersion: LedgerVersionArg? = null): Option<T>

Queries for a Move view function