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.
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.
account.create(): AccountCredentialsNone. Account.create takes no arguments.
Returns an AccountCredentials object synchronously. This is the one Account operation that does not submit a transaction, so it does not return a SubmissionResult.
| Field | Type | Description |
|---|---|---|
address | string | The classic r-address. |
publicKey | string | The public key (hex). |
privateKey | string | The private key (hex) — sensitive. |
seed | string | The account seed (secret) — sensitive. |
None. Account.create generates a keypair locally and writes nothing to the ledger. Use activate or fund to bring the account on-ledger.
const { address, seed } = client.account.create()
console.log(address)