Class: EvmErc20Price
moralis-monorepo / @moralisweb3/common-evm-utils / EvmErc20Price
Class: EvmErc20Price
@moralisweb3/common-evm-utils.EvmErc20Price
Table of contents
Methods
Properties
- 24hrPercentChange
- exchangeAddress
- exchangeName
- nativePrice
- pairAddress
- pairTotalLiquidityUsd
- possibleSpam
- toBlock
- tokenAddress
- tokenDecimals
- tokenLogo
- tokenName
- tokenSymbol
- usdPrice
- usdPriceFormatted
- verifiedContract
Methods
create
▸ Static
create(input
): EvmErc20Price
Parameters
Name | Type |
---|---|
input | EvmErc20PriceInput | EvmErc20Price |
Returns
fromJSON
▸ Static
fromJSON(json
): EvmErc20Price
Parameters
Name | Type |
---|---|
json | EvmErc20PriceJSON |
Returns
toJSON
▸ toJSON(): EvmErc20PriceJSON
Returns
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
tokenLogo
• 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