Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Wallet

Wallet object.

Contains the private key and public key of a user. It is used to sign and send transactions.

Hierarchy

  • Wallet

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Wallet(privateKey: string): Wallet

Properties

Private _privateKey

_privateKey: string

Accessors

privateKey

  • get privateKey(): string
  • Gets the private key of the wallet.

    Returns string

    The private key of the wallet.

publicKey

  • get publicKey(): string
  • Gets the public key of the wallet.

    Returns string

    The public key of the wallet.

Methods

sign

  • sign(message: string): Promise<string>
  • Signs a message with the private key of the wallet.

    Parameters

    • message: string

      The message to sign.

    Returns Promise<string>

    The signature of the message.

Static createRandom

Generated using TypeDoc