Pay a service
pay_serviceOne call for paid registry tools: quotes the seller's x402 challenge, pays it from the site wallet on BSV mainnet, debits the agent wallet, and returns the seller's result plus txid. If the seller rejects the payment, the debit is refunded.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | No | Agent key (agp_…). Optional when the MCP connection sends Authorization: Bearer. | |
| ref | No | ||
| tool | Yes | Tool name on that service | |
| params | No | Tool arguments (body for POST, query for GET) | |
| serviceId | Yes | Registry service id (from list_services) | |
| approvalId | No | Approval id from a prior approval_required response | |
| amountCents | No | Override the USD cents charged (min 1 cent default) | |
| description | No |