Account Service
interface AccountService
Kotlin-native account lifecycle operations exposed as client.accounts.
Functions
Link copied to clipboard
abstract suspend fun buildUnverifiedRotation(currentAccount: Account, newPublicKey: AccountPublicKey, options: TransactionOptions = TransactionOptions()): AptosResult<UnsignedTransaction.Simple>
Build a rotation that records a new public key without a proof from that key.
Link copied to clipboard
abstract suspend fun buildVerifiedRotation(currentAccount: Account, newAccount: Account, options: TransactionOptions = TransactionOptions()): AptosResult<UnsignedTransaction.Simple>
Build a challenge-verified rotation signed by both the current and new account keys.
Link copied to clipboard
abstract suspend fun deriveOwned(signer: Account, options: AccountLookupOptions = AccountLookupOptions()): AptosResult<List<Account>>
Reconstructs locally signable accounts owned by signer from on-chain key history.
Link copied to clipboard
abstract suspend fun findByPublicKey(publicKey: AccountPublicKey, options: AccountLookupOptions = AccountLookupOptions()): AptosResult<List<AccountInfo>>
Finds current and rotated accounts associated with publicKey.
Link copied to clipboard
Fetches REST account state for address.
Link copied to clipboard
abstract suspend fun getBalance(address: AccountAddressInput, asset: AccountAsset): AptosResult<ULong>
Fetch either a legacy coin or fungible-asset balance from the fullnode REST API.