getAccountCoinAmountFromSmartContract

open suspend override fun getAccountCoinAmountFromSmartContract(accountAddress: AccountAddressInput, coinType: MoveValue.MoveStructId?, faMetadataAddress: AccountAddressInput?): Result<Long, AptosSdkError>

Queries the account's coin amount directly from smart contracts (view function), matching the TS SDK behavior.

Parameters

accountAddress

The account address to query.

coinType

Optional coin type.

faMetadataAddress

Optional fungible asset metadata address.