getAccountResource

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

Parameters

accountAddress

Aptos account address

resourceName

Name of the resource

param

LedgerVersionQueryParam to optionally configure the ledger version.