Pay an x402 URL
x402_payCalls a URL that asks for an x402 payment and pays it for you: the gateway pays the seller in USDC from its own float and charges this key in USDF the seller's amount and the payer's fee (never free credit), within the key's and its agent's limits. Needs an API key. Returns the seller's answer with the payment and its receipt; a payment is charged only once the chain shows it, and one that never settles costs nothing. quote: true answers what it would cost and pays nothing. Third-party tools to call this way are listed under marketplace in list_tools (GET /v1/tools?source=marketplace).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | The seller's URL (https) | |
| body | No | The request body: text, or JSON sent as application/json | |
| quote | No | Answer the price and pay nothing | |
| method | No | Default GET, or POST when a body is given | |
| headers | No | Headers for the seller (the payment headers are the gateway's) | |
| network | No | Pay on this network only: its CAIP-2 id, one GET /v1/x402/payer lists | |
| max_price | No | The most to pay in USDF, the fee included ("0.05") |