Class: EvmErc20TokenBalanceWithPrice
moralis-monorepo / @moralisweb3/common-evm-utils / EvmErc20TokenBalanceWithPrice
Class: EvmErc20TokenBalanceWithPrice
@moralisweb3/common-evm-utils.EvmErc20TokenBalanceWithPrice
Table of contents
Methods
Properties
- balance
- balanceFormatted
- decimals
- logo
- name
- nativeToken
- percentageRelativeToTotalSupply
- portfolioPercentage
- possibleSpam
- symbol
- thumbnail
- tokenAddress
- totalSupply
- totalSupplyFormatted
- usdPrice
- usdPrice24hrPercentChange
- usdPrice24hrUsdChange
- usdValue
- usdValue24hrUsdChange
- verifiedContract
Methods
create
▸ Static
create(input
): EvmErc20TokenBalanceWithPrice
Parameters
Name | Type |
---|---|
input | EvmErc20TokenBalanceWithPriceInput | EvmErc20TokenBalanceWithPrice |
Returns
fromJSON
▸ Static
fromJSON(json
): EvmErc20TokenBalanceWithPrice
Parameters
Name | Type |
---|---|
json | EvmErc20TokenBalanceWithPriceJSON |
Returns
toJSON
▸ toJSON(): EvmErc20TokenBalanceWithPriceJSON
Returns
EvmErc20TokenBalanceWithPriceJSON
Properties
balance
• Readonly
balance: EvmNative
Description
The balance of the token
balanceFormatted
• Readonly
balanceFormatted: string
Description
Balance of the token in decimal format
decimals
• Readonly
decimals: number
Description
The number of decimals on the token
logo
• Optional
Readonly
logo: string
Description
The logo of the token
name
• Readonly
name: string
Description
The name of the token
nativeToken
• Readonly
nativeToken: boolean
Description
Indicates if the token is a native coin
percentageRelativeToTotalSupply
• Optional
Readonly
percentageRelativeToTotalSupply: number
Description
Percentage of the token in the total supply
portfolioPercentage
• Readonly
portfolioPercentage: number
Description
Percentage of the token in the entire portfolio
possibleSpam
• Readonly
possibleSpam: boolean
Description
Indicates if a contract is possibly a spam contract
symbol
• Readonly
symbol: string
Description
The symbol of the token
thumbnail
• Optional
Readonly
thumbnail: string
Description
The thumbnail of the token logo
tokenAddress
• Optional
Readonly
tokenAddress: EvmAddress
Description
The address of the token contract
totalSupply
• Optional
Readonly
totalSupply: string
Description
Total supply of the token
totalSupplyFormatted
• Optional
Readonly
totalSupplyFormatted: string
Description
Total supply of the token in decimal format
usdPrice
• Readonly
usdPrice: string
Description
USD price of the token
usdPrice24hrPercentChange
• Readonly
usdPrice24hrPercentChange: string
Description
24-hour percent change in USD price of the token
usdPrice24hrUsdChange
• Readonly
usdPrice24hrUsdChange: string
Description
24-hour change in USD price of the token
usdValue
• Readonly
usdValue: number
Description
USD value of the token balance
usdValue24hrUsdChange
• Optional
Readonly
usdValue24hrUsdChange: string
Description
24-hour change in USD value of the token based on the balance
verifiedContract
• Optional
Readonly
verifiedContract: boolean
Description
Indicates if a contract is verified