{ atomic: bigint; asset?: string }.
Parameters
value
The amount value to parse (bigint, string, or Amount object).string | bigint | Amount
asset?
string
Optional asset identifier to scope the amount.
Returns
atomic
asset?
Throws
"amount_unparseable" on bad input.