pay_and_call
Pay the one-time address for a quoted request ID, then call the specified tool after verifying the payment.
Instructions
Agent side: given a quoted request_id, pay its one-time address and call
tool after verify. NOTE: broadcast is not executed here in tests (no funded
wallet); this returns the target so a host calling the server can send via the
SDK wallet (Wallet.send) then verify.
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>",
"tool": "<tool>"
},
"name": "pay_and_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| amount_raw | Yes | ||
| request_id | Yes |