Fetch x402 Resource (auto-pay)
ordnet_x402_fetchFetch x402-paywalled resources by detecting the 402, paying the exact BSV quote within your maxSats budget, and returning the content with a settlement receipt. Non-paywalled URLs are fetched without payment.
Instructions
Consume an x402-paywalled resource in one call: detect the 402, pay the quoted amount in native BSV sats from the loaded wallet, retry with proof, and return the resource plus the settlement receipt.
Safety:
maxSats is REQUIRED: the tool refuses quotes above it (agent-set budget)
the spend policy (ordnet_policy_status) is enforced on the payment
only the 'exact' scheme on network 'bsv' is supported; other networks (e.g. USDC on Base) are reported honestly as unsupported
non-paywalled URLs are fetched and returned without any payment
Args:
url (string): resource URL
method (string, optional): GET or POST (default GET)
maxSats (number): spending guard in satoshis
Returns: { status, body, paid?: { txid, satoshis, payTo }, receipt? }
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | URL of the x402-paywalled resource | |
| method | No | HTTP method (default GET) | |
| maxSats | Yes | REQUIRED spending guard: refuse to pay more than this many satoshis |