POST
$0.02 default
/check/amountDescription
Check token amount decimals, dust, unusually round/precise values and mismatch against a stated invoice amount.
Pricing
$0.02 default
Request schema
{
"properties": {
"amount": {
"type": "string"
},
"invoice_amount": {
"type": "string"
},
"token_decimals": {
"default": 6,
"type": "integer"
}
},
"required": [
"amount"
],
"type": "object"
}Response schema
{
"properties": {
"issues": {
"items": {
"type": "string"
},
"type": "array"
},
"valid": {
"type": "boolean"
},
"warnings": {
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
}Example request
{
"amount": "25.00",
"invoice_amount": "25.00",
"token_decimals": 6
}Example response
{
"issues": [],
"ok": true,
"valid": true,
"warnings": []
}