Skip to content

account.create()

[Source]

Generate a new XRPL keypair locally and register it so it can be funded and used right away. Use this only to mint an additional account outside of SimpleXRPL.init. This method is intended for local connectors only.

Warning

Nothing is written to the ledger until the account is funded. The returned seed (and privateKey) are secret and are the only way to control the account. Store them securely and never log or transmit them.

Signature

account.create(): AccountCredentials

Parameters

None. Account.create takes no arguments.

Returns

Returns an AccountCredentials object synchronously. This is the one Account operation that does not submit a transaction, so it does not return a SubmissionResult.

Return fields

FieldTypeDescription
addressstringThe classic r-address.
publicKeystringThe public key (hex).
privateKeystringThe private key (hex) — sensitive.
seedstringThe account seed (secret) — sensitive.

Underlying XRPL transactor

None. Account.create generates a keypair locally and writes nothing to the ledger. Use activate or fund to bring the account on-ledger.

Example

const { address, seed } = client.account.create()

console.log(address)