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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"amount": "<amount>"
},
"name": "decode_amount"
}
}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 |