verify_payment
Confirm an on-chain Nano send to the request's one-time address, then approve that request's API call exactly once. Raises the required amount if higher is quoted; repeats return 'spent'.
Instructions
Service side: approve the call for request_id once an on-chain send of at least amount_raw is confirmed to its one-time address. Approves exactly once; a repeat returns status='spent'.
amount_raw can only make the check STRICTER: the amount actually required
is the higher of it and what this server quoted for request_id.
There is deliberately no require_onchain argument here. The service
method takes one so in-process tests can run without a node, but over the
tool surface the caller is the payer, and a payer that can pass
require_onchain=false is approved with tx_hash "simulated" without any
payment at all.
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": {
"request_id": "<request_id>",
"amount_raw": "<amount_raw>"
},
"name": "verify_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount_raw | Yes | ||
| request_id | Yes |