Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Address

Ethereum address of a contract or account.

Hierarchy

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

ascii

ascii: string

Protected blockchain

blockchain: Blockchain

Methods

balance

  • balance(token: Token): Promise<BigNumber>
  • Returns a token's balance of this address.

    Parameters

    • token: Token

      ERC20 compatible token.

    Returns Promise<BigNumber>

    balance

eq

  • Compares two addresses for equality, ie. if they are the same address.

    Parameters

    • other: Address

      Address to compare with.

    Returns boolean

    Whether addresses are equal.

proto

  • proto(): pb.Address
  • Converts this address to a proto representation.

    Returns pb.Address

    This address as a protobuf.

token

  • Converts this address to a Token.

    Returns Token

    This address as a token.

Generated using TypeDoc