Property | Description | Type | Default | Version |
---|---|---|---|---|
value | Crypto input value | CryptoInputValue | - | - |
onChange | Crypto input value change callback | (value?: CryptoInputValue) => void | - | - |
options | selectable token options | Token[] | - | - |
balance | selected token balance, includes amount and unit price | TokenBalance | - | - |
header | custom render for header | (value?: CryptoInputValue) => React.ReactNode | - | - |
footer | custom render for footer | (value?: CryptoInputValue) => React.ReactNode | - | - |
...props | Others please ref TokenSelect | TokenSelect | - | - |
Property | Description | Type | Default | Version |
---|---|---|---|---|
token | selected token | Token | - | - |
amount | token amount, from input string mutiples token decimal, like 123456789012345678901n | bigint | - | - |
inputString | the origin number entered by user, like 1.123456789 | string | - | - |
Property | Description | Type | Default | Version |
---|---|---|---|---|
amount | user had token amount | bigint | - | - |
price | token price | string | number | - | - |
unit | token price display unit, like "$" | bigint | - | - |