Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseAccount

Stores information about an account fetched from the blockchain.

Hierarchy

Index

Constructors

  • 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: number
address: string
public_key: null | PublicKey
sequence: number

Methods

  • getAccountNumber(): number
  • getSequenceNumber(): number
  • packAny(isClassic?: boolean): Any
  • toAminoJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toJSON(isClassic?: boolean): string
  • Parameters

    • Optional isClassic: boolean

    Returns string

  • toProto(_?: boolean): BaseAccount
  • fromProto(baseAccountProto: BaseAccount, _?: boolean): BaseAccount
  • unpackAny(pubkeyAny: Any, isClassic?: boolean): BaseAccount