Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModuleAccount

Stores information about an account fetched from the blockchain.

Hierarchy

Index

Constructors

  • Creates a new Module accout object, holding information about a module account.

    Parameters

    • name: string

      name of the module e.g 'alliance', 'bank', 'distribution'...

    • permissions: string[]

      permissions of the module to operate 'burner', 'staking'...

    • Optional baseAccount: BaseAccount

      basic account information of the module

    Returns ModuleAccount

Properties

baseAccount?: BaseAccount
name: string
permissions: string[]

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): ModuleAccount
  • fromProto(moduleAccountProto: ModuleAccount, _?: boolean): ModuleAccount