Amount

common.Amount

type Amount

common.Amount

FieldTypeDescription
currency_codestringISO-4217 currency code to denote remitting Digital Banknotes in a specific currency.
amountint64Signed 64 bit representation of the significand.
decimalsuint32Unsigned 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
}