common.Amount
type Amount
Amount
common.Amount
common.Amount
Field | Type | Description |
---|---|---|
currency_code | string | ISO-4217 currency code to denote remitting Digital Banknotes in a specific currency. |
amount | int64 | Signed 64 bit representation of the significand. |
decimals | uint32 | Unsigned 32 bit representation of the decimal precision, i.e. the inverse of the exponent. The allowed value is determined by the rust_decimal crate, which allows a scale (decimal) between 0-28 inclusive. e.g. amount = 10, decimals = 2 =&rt; value 0.01. |
{
"currency_code": "USD",
"amount": 100,
"decimals": 2
}