Fetch a paid URL (x402 or MPP), paying if required
pay.fetchMakes HTTP requests to URLs that may require payment, automatically settling 402 responses by signing USDC transactions via x402 or MPP protocols.
Instructions
Make an HTTP request to a URL that may require payment. If the server returns 402, the gateway speaks either x402 (Coinbase's spec, Base and Solana) or MPP (paymentauth.org draft-solana-charge, Solana only) and signs the required USDC payment from its configured wallet — subject to spend caps and the host allowlist — then returns the response body. The LLM client never sees the wallet or the 402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full URL of the paid endpoint | |
| method | No | HTTP method (default GET) |