TokenAmount
Last updated
Last updated
The Token Amount component is used to display a token logo followed by an amount and the token symbol.
address
TYPE | DEFAULT VALUE |
---|---|
| None |
The address of the token contract, on the specified chainId
(only Ethereum Mainnet is supported at the moment).
amount
TYPE | DEFAULT VALUE |
---|---|
| None (required) |
The token amount.
chainId
TYPE | DEFAULT VALUE |
---|---|
|
|
The chain ID for the token. Only Ethereum Mainnet (1
) is supported at the moment.
decimals
TYPE | DEFAULT VALUE |
---|---|
| None (required) |
The number of decimals for the token amount, as specified by the token contract.
digits
TYPE | DEFAULT VALUE |
---|---|
|
|
Rounds the number to a given decimal place.
iconUrl
TYPE | DEFAULT VALUE |
---|---|
| None |
Overrides the icon URL given by the token address.
size
TYPE | DEFAULT VALUE |
---|---|
|
|
Size of the component.
symbol
TYPE | DEFAULT VALUE |
---|---|
| None |
Overrides the symbol given by the token address.