Options
All
  • Public
  • Public/Protected
  • All
Menu

An account key pair (public and secret keys).

deprecated

since v1.10.0, please use Keypair instead.

Hierarchy

  • Account

Index

Constructors

Accessors

Constructors

  • new Account(secretKey?: number[] | Uint8Array | Buffer): Account
  • Create a new Account object

    If the secretKey parameter is not provided a new key pair is randomly created for the account

    Parameters

    • Optional secretKey: number[] | Uint8Array | Buffer

      Secret key for the account

    Returns Account

Accessors

  • The public key for this account

    Returns PublicKey

  • get secretKey(): Buffer
  • The unencrypted secret key for this account

    Returns Buffer

Generated using TypeDoc