Skip to main content

Token

The Token entity represents an ERC-20 token.

Source code

constructor(chainId: ChainId, address: string, decimals: number, symbol?: string, name?: string)

Properties#

chainId#

chainId: ChainId

address#

address: string

decimals#

decimals: number

symbol#

symbol?: string

name#

name?: string

Methods#

equals#

Checks if the current instance is equal to another (i.e.,has an identical chainId and address).

equals(other: Token): boolean

sortsBefore#

Checks if the current instance sorts before another, by address.

sortsBefore(other: Token): boolean