Skip to content

adamant-console / createAccount

Function: createAccount() ​

createAccount(): object

Defined in: account.js:23

Creates a new local ADAMANT account.

The returned object contains the generated passphrase and keys. Callers must show or store it only in trusted local contexts.

Returns ​

object

Newly generated account credentials and address

account ​

account: object

account.address ​

address: string

account.passphrase ​

passphrase: string

account.privateKey ​

privateKey: string

account.publicKey ​

publicKey: string

success ​

success: true

Released under the GPL-3.0 License.