Skip to main content

Class: EvmDefiTokenBalance

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

Class: EvmDefiTokenBalance

@moralisweb3/common-evm-utils.EvmDefiTokenBalance

Table of contents

Methods

Properties

Methods

create

Static create(input): EvmDefiTokenBalance

Parameters

NameType
inputEvmDefiTokenBalanceInput | EvmDefiTokenBalance

Returns

EvmDefiTokenBalance


fromJSON

Static fromJSON(json): EvmDefiTokenBalance

Parameters

NameType
jsonEvmDefiTokenBalanceJSON

Returns

EvmDefiTokenBalance


toJSON

toJSON(): EvmDefiTokenBalanceJSON

Returns

EvmDefiTokenBalanceJSON

Properties

balance

Readonly balance: string

Description

The balance of the token


balanceFormatted

Readonly balanceFormatted: string

Description

The balance of the token formatted


contractAddress

Readonly contractAddress: EvmAddress

Description

The contract address


decimals

Readonly decimals: number

Description

The decimals of the token


Optional Readonly logo: string

Description

The logo of the token


name

Readonly name: string

Description

The name of the token


symbol

Readonly symbol: string

Description

The symbol of the token


thumbnail

Optional Readonly thumbnail: string

Description

The thumbnail of the token


tokenType

Readonly tokenType: string

Description

The token type (supply/defi/borrow token)


usdPrice

Optional Readonly usdPrice: number

Description

The USD price of the token


usdValue

Optional Readonly usdValue: number

Description

The USD value of the token