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
Name | Type |
---|---|
input | EvmDefiTokenBalanceInput | EvmDefiTokenBalance |
Returns
fromJSON
▸ Static
fromJSON(json
): EvmDefiTokenBalance
Parameters
Name | Type |
---|---|
json | EvmDefiTokenBalanceJSON |
Returns
toJSON
▸ toJSON(): EvmDefiTokenBalanceJSON
Returns
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
logo
• 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