General

class General(val config: AptosConfig) : General

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

Constructors

Link copied to clipboard
constructor(config: AptosConfig)

Properties

Link copied to clipboard
open override val config: AptosConfig

AptosConfig object for configuration

Functions

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

Queries for block by height

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

Queries for block by transaction version

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

Queries for the chain id

Link copied to clipboard

Queries top user transactions

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

Queries for the last successful indexer version

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

Queries for the Aptos ledger info

Link copied to clipboard
open suspend override 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