Skip to main content

Class: EvmErc20Price

moralis-monorepo / @moralisweb3/common-evm-utils / EvmErc20Price

Class: EvmErc20Price

@moralisweb3/common-evm-utils.EvmErc20Price

Table of contents

Methods

Properties

Methods

create

Static create(input): EvmErc20Price

Parameters

NameType
inputEvmErc20PriceInput | EvmErc20Price

Returns

EvmErc20Price


fromJSON

Static fromJSON(json): EvmErc20Price

Parameters

NameType
jsonEvmErc20PriceJSON

Returns

EvmErc20Price


toJSON

toJSON(): EvmErc20PriceJSON

Returns

EvmErc20PriceJSON

Properties

24hrPercentChange

Optional Readonly 24hrPercentChange: string

Description

The 24hr percent change of the token


exchangeAddress

Optional Readonly exchangeAddress: string

Description

The address of the exchange used to calculate the price


exchangeName

Optional Readonly exchangeName: string

Description

The name of the exchange used to calculate the price


nativePrice

Optional Readonly nativePrice: EvmNativeErc20Price


pairAddress

Optional Readonly pairAddress: string

Description

The address of the pair


pairTotalLiquidityUsd

Optional Readonly pairTotalLiquidityUsd: string

Description

The total liquidity in USD of the pair


possibleSpam

Readonly possibleSpam: boolean

Description

Indicates if a contract is possibly a spam contract


toBlock

Optional Readonly toBlock: string

Description

toBlock


tokenAddress

Optional Readonly tokenAddress: string

Description

The address of the token


tokenDecimals

Optional Readonly tokenDecimals: string

Description

The number of decimals of the token


Optional Readonly tokenLogo: string

Description

The logo of the token


tokenName

Optional Readonly tokenName: string

Description

The name of the token


tokenSymbol

Optional Readonly tokenSymbol: string

Description

The symbol of the token


usdPrice

Readonly usdPrice: number

Description

The price in USD for the token


usdPriceFormatted

Optional Readonly usdPriceFormatted: string

Description

The price in USD for the token in string format


verifiedContract

Readonly verifiedContract: boolean

Description

Indicates if the contract is verified