Amount
Amount is some Value of a Currency. It is considered invalid to specify a Value without a Currency.
Properties
Name | Type | Description | Required |
---|---|---|---|
value | String | Value of the transaction in atomic units represented as an arbitrary-sized signed integer. For example, 1 BTC would be represented by a value of 100000000. | True |
currency | Currency | Currency is composed of a canonical Symbol and Decimals. This Decimals value is used to convert an Amount.Value from atomic units (Satoshis) to standard units (Bitcoins). | True |
metadata | Object | False |
Example
{
"value": "1238089899992",
"currency": {
"symbol": "BTC",
"decimals": 8,
"metadata": {
"Issuer": "Satoshi"
}
},
"metadata": {}
}