Skip to main content
Accounts can be created either randomly or derived from existing mnemonics or secret keys.
In the example below, we generate a new keypair and use it to create an account (Associated Token Account, or ATA) on the blockchain.
val result = Altude.createAccount()
or you can use the advanced version with additional options:
val options = CreateAccountOption(
    tokens = listOf(Token.USDC.mint()),
    commitment = Commitment.finalized,
)

val result = Altude.createAccount(options)