Skip to main content

Class: EvmErc20TokenBalanceWithPrice

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

Class: EvmErc20TokenBalanceWithPrice

@moralisweb3/common-evm-utils.EvmErc20TokenBalanceWithPrice

Table of contents

Methods

Properties

Methods

create

Static create(input): EvmErc20TokenBalanceWithPrice

Parameters

NameType
inputEvmErc20TokenBalanceWithPriceInput | EvmErc20TokenBalanceWithPrice

Returns

EvmErc20TokenBalanceWithPrice


fromJSON

Static fromJSON(json): EvmErc20TokenBalanceWithPrice

Parameters

NameType
jsonEvmErc20TokenBalanceWithPriceJSON

Returns

EvmErc20TokenBalanceWithPrice


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


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


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


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