decode_amount
Decode native drops, STAmount hex, or issued amount objects into normalized value, currency, and issuer. Works offline.
Instructions
Decode an amount: native drops (digits), a serialized 8-byte native or 48-byte issued STAmount (hex), or an issued amount object {currency,issuer,value} → normalized value/currency/issuer. Offline.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | drops string, STAmount hex, or amount object |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| xah | No | ||
| type | No | ||
| drops | No | ||
| error | No | ||
| value | No | ||
| issuer | No | ||
| currency | No | ||
| valueNote | No |