Account

interface Account

Account API namespace. This interface provides functionality to reading and writing account related information.

Inheritors

Properties

Link copied to clipboard
abstract val config: AptosConfig

AptosConfig object for configuration

Functions

Link copied to clipboard
abstract suspend fun getAccountAPTAmount(accountAddress: AccountAddressInput, minimumLedgerVersion: Long? = null): Option<Long>

Queries the account's APT amount

Link copied to clipboard
abstract suspend fun getAccountCoinAmount(accountAddress: AccountAddressInput, coinType: MoveValue.MoveStructId, minimumLedgerVersion: Long? = null): Option<Long>

Queries the account's coin amount by the coin type

Link copied to clipboard
abstract suspend fun getAccountCoinsCount(accountAddress: AccountAddressInput, minimumLedgerVersion: Long? = null): Option<Int>

Queries the current count of an account's coins aggregated

Link copied to clipboard
abstract suspend fun getAccountCoinsData(accountAddress: AccountAddressInput, minimumLedgerVersion: Long? = null): Option<AccountCoinsData>

Queries an account's coins data

Link copied to clipboard
abstract suspend fun getAccountInfo(accountAddress: AccountAddressInput, params: LedgerVersionQueryParam.() -> Unit = {}): Option<AccountData>

Queries the current state for an Aptos account given its account address

Link copied to clipboard
abstract suspend fun getAccountModule(accountAddress: AccountAddressInput, moduleName: String, param: LedgerVersionQueryParam.() -> Unit = {}): Option<MoveModuleBytecode>

Queries for a specific account module given account address and module name

Link copied to clipboard

Queries for all modules in an account given an account address

Link copied to clipboard
inline suspend fun <T> Account.getAccountResource(accountAddress: AccountAddressInput, resourceName: String, param: LedgerVersionQueryParam.() -> Unit = {}): Option<T>

Queries a specific account resource given an account address and resource name

Link copied to clipboard
abstract suspend fun getAccountResources(accountAddress: AccountAddressInput, params: SpecificPaginationQueryParams.() -> Unit = {}): Option<List<Option<List<MoveResource>>>>

Queries all account resources given an account address

Link copied to clipboard
abstract suspend fun getAccountTransactions(accountAddress: AccountAddressInput, params: PaginationQueryParams.() -> Unit = {}): Option<List<Option<List<TransactionResponse>>>>

Queries account transactions given an account address

Link copied to clipboard
abstract suspend fun getAccountTransactionsCount(accountAddress: AccountAddressInput, minimumLedgerVersion: Long? = null): Option<Long>

Queries the current count of transactions submitted by an account