Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseAccount

Stores information about an account fetched from the blockchain.

Hierarchy

Index

Constructors

constructor

  • new BaseAccount(address: string, public_key: null | PublicKey, account_number: number, sequence: number): BaseAccount
  • Creates a new Account object, holding information about a basic account.

    Parameters

    • address: string

      account address

    • public_key: null | PublicKey

      account's public key information

    • account_number: number

      account number on the blockchain

    • sequence: number

      sequence number, or number of transactions that have been posted

    Returns BaseAccount

Properties

account_number

account_number: number

address

address: string

public_key

public_key: null | PublicKey

sequence

sequence: number

Methods

getAccountNumber

  • getAccountNumber(): number

getPublicKey

getSequenceNumber

  • getSequenceNumber(): number

packAny

  • packAny(): Any

toAmino

toAminoJSON

  • toAminoJSON(): string
  • Returns string

toData

toJSON

  • toJSON(): string
  • Returns string

toProto

  • toProto(): BaseAccount

Static fromAmino

Static fromData

Static fromProto

Static unpackAny