fetch_with_402_payment
Fetch a web API or resource and automatically settle Bitcoin HTTP 402 paywalls using Cashu NUT-24 (X-Cashu) or Lightning L402, with optional per-request satoshi limits.
Instructions
Fetch a web API or resource and automatically settle Bitcoin HTTP 402 paywalls via Cashu NUT-24 (X-Cashu) or Lightning L402.
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": {
"url": "<url>"
},
"name": "fetch_with_402_payment"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Target HTTP/HTTPS URL to fetch (protected by SSRF Guard) | |
| body | No | Optional request body string (for POST requests) | |
| method | No | HTTP method to use (default: GET) | |
| preferRail | No | Preferred settlement rail when both headers are offered (default: cashu) | |
| maxAutoPaySats | No | Optional per-request ceiling in satoshis for automatic 402 settlement |