get Account Id
Gets the Stellar account ID at the specified index.
This derives the full keypair internally. If you need both the account ID and signing capability, use getKeyPair instead to avoid redundant derivation.
Return
Stellar account ID (G... address)
Parameters
index
Account index (default: 0)
Throws
if index is negative
Example:
val accountId = mnemonic.getAccountId(index = 0)
// Returns: "GDRXE2BQUC3AZNPVFSCEZ76NJ3WWL25FYFK6RGZGIEKWE4SOOHSUJUJ6"Content copied to clipboard