Account
Account API namespace. This class provides functionality to reading and writing account related information.
Functions
Link copied to clipboard
open suspend override fun getAccountAPTAmount(accountAddress: AccountAddressInput, minimumLedgerVersion: Long?): Option<Long>
Queries the account's APT amount
Link copied to clipboard
open suspend override fun getAccountCoinAmount(accountAddress: AccountAddressInput, coinType: MoveValue.MoveStructId, minimumLedgerVersion: Long?): Option<Long>
Queries the account's coin amount by the coin type
Link copied to clipboard
open suspend override fun getAccountCoinsCount(accountAddress: AccountAddressInput, minimumLedgerVersion: Long?): Option<Int>
Queries the current count of an account's coins aggregated
Link copied to clipboard
open suspend override fun getAccountCoinsData(accountAddress: AccountAddressInput, minimumLedgerVersion: Long?): Option<AccountCoinsData>
Queries an account's coins data
Link copied to clipboard
open suspend override 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
open suspend override 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
open suspend override fun getAccountModules(accountAddress: AccountAddressInput, params: SpecificPaginationQueryParams.() -> Unit): Option<List<Option<List<MoveModuleBytecode>>>>
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
open suspend override fun getAccountResources(accountAddress: AccountAddressInput, params: SpecificPaginationQueryParams.() -> Unit): Option<List<Option<List<MoveResource>>>>
Queries all account resources given an account address
Link copied to clipboard
open suspend override fun getAccountTransactions(accountAddress: AccountAddressInput, params: PaginationQueryParams.() -> Unit): Option<List<Option<List<TransactionResponse>>>>
Queries account transactions given an account address
Link copied to clipboard
open suspend override fun getAccountTransactionsCount(accountAddress: AccountAddressInput, minimumLedgerVersion: Long?): Option<Long>
Queries the current count of transactions submitted by an account