An abstraction representing an account (user or Smart Contract) on the Network.

Constructors

Properties

address: IAddress = ...

The address of the account.

balance: IAccountBalance = "0"

The balance of the account.

nonce: INonce = 0

The nonce of the account (the account sequence number).

Methods

  • Gets then increments (locally) the nonce (the account sequence number).

    Returns INonce

  • Increments (locally) the nonce (the account sequence number).

    Returns void

  • Converts the account to a pretty, plain JavaScript object.

    Returns any