Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Account

Hierarchy

  • Account

Index

Constructors

Properties

Methods

Constructors

constructor

  • new Account(keyPair: KeyPair, address: BigInt, name: string): Account

Properties

Readonly address

address: BigInt

Readonly keyPair

keyPair: KeyPair

Readonly name

name: string

Methods

sign

  • sign(text: string): Promise<string>
  • Sign text, and return the signature

    Parameters

    • text: string

      Text to sign

    Returns Promise<string>

    a signature of the signed text

Static create

  • Creates a new account

    Parameters

    • keyPair: KeyPair
    • Optional address: BigInt
    • Optional name: string

    Returns Account

    a new Account Object

Generated using TypeDoc