Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Account

This class provides common account related RPC calls including signing transactions with a KeyPair.

example

{@link }

hint

Use Wallet in the browser to manage derivited Accounts.

see

{@link }

Hierarchy

  • Account

Constructors

constructor

Properties

Protected _connection

_connection: Connection

Protected _keyStore

_keyStore: KeyStore

Protected _signer

_signer: Signer

Readonly address

address: Address

Readonly publicKey

publicKey: PublicKey

Methods

balance

frozen

nonce

  • nonce(): Promise<number>
  • Returns Promise<number>

setConnection

  • Parameters

    Returns Promise<Account>

setKeyStore

  • Parameters

    Returns Promise<Account>

sign

  • Parameters

    • message: Buffer

    Returns Promise<Signature>

signAndSendTx

  • Sign transaction and send to node

    Parameters

    Returns Promise<string>

    string Transaction hash

signTx

state

  • Returns Promise<AccountState>

waitlist

Generated using TypeDoc