Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Erc20Reader

Class to query read-only information from an ERC20 contract.

Hierarchy

  • Erc20Reader

Index

Constructors

constructor

Methods

balanceOf

  • balanceOf(address: Address): Promise<BN>

decimals

  • decimals(): Promise<number>
  • Returns decimals value from options or from chain.

    On-chain values will be cached internally, i.e. it is cheap to use this getter as long as the class instance is long living.

    Returns Promise<number>

name

  • name(): Promise<string>
  • Returns symbol value from options or from chain.

    On-chain values will be cached internally, i.e. it is cheap to use this getter as long as the class instance is long living.

    Returns Promise<string>

symbol

  • symbol(): Promise<string>
  • Returns symbol value from options or from chain.

    On-chain values will be cached internally, i.e. it is cheap to use this getter as long as the class instance is long living.

    Returns Promise<string>

totalSupply

  • totalSupply(): Promise<BN>

Generated using TypeDoc