General

class General(val config: AptosConfig) : General

A class to handle 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, 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
open suspend override fun getChainId(): Result<Long, AptosSdkError>

Retrieves the chain ID of the network.

Link copied to clipboard

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
open suspend override fun getLedgerInfo(): Result<LedgerInfo, AptosSdkError>

Retrieves the latest ledger information from a fullnode.

Link copied to clipboard

Queries the status of a specific indexer processor.