createAccount

Generate a new privatekey + address combination. This account is not activated on the network.

❗️

WARNING

This API exposes the private key for the new address. Do not use this in any unsafe environments.

Usage

visionWeb.createAccount();

Returns

Object

Example

visionWeb.createAccount();
> {
    privateKey: '7A29D1DA74BBE2CC498B797FFB03CE0964BDF865069C3C7D2A5C637F4CC8D614',
    publicKey: '04BDEA99C5CBD144D39B975B3BB58A3DDBD49D1947B47CFDDF0EE5E0F99B493B39E0A8EB95FB7BE70447762ACFCC51A14CA6C9FCB518F421A4B479364917EE5535',
    address: {
      base58: 'VVGSgFPWuVmq9dZyN2syUYsM1dwzwqVSvX',
      hex: '46CC1B77D219C75875F0578B7958237BE0AA20A9A4'
    }
  }