account

fun account(privateKey: PrivateKey, address: AccountAddressInput? = null): Account

Creates an SDK-owned local account. Its private key is cleared automatically when this client closes, including when used inside aptos.


fun account(privateKey: Aip80PrivateKey, address: AccountAddressInput? = null): Account

Creates an SDK-owned account from a validated AIP-80 private key.


fun account(privateKey: String, address: AccountAddressInput? = null): Account

Creates an SDK-owned account from a canonical algorithm-prefixed AIP-80 string.


fun account(signingScheme: SigningSchemeInput = SigningSchemeInput.Ed25519, address: AccountAddressInput? = null): Account

Generates an SDK-owned local account. Ed25519 is the conventional Aptos default.