bazaar_pay_and_call
Pay and call any x402-paid HTTPS endpoint using the merchant agent's CDP MPC wallet (EIP-3009 exact scheme on Base USDC). Probes the URL for HTTP 402, picks a compatible requirement, signs TransferWithAuthorization via CDP, retries with X-PAYMENT header, and returns the paid response. Requires scope 'mint' and a pre-created CDP wallet. Safety cap: max_usdc (default 0.25, hard limit 10).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | Yes | Full https:// URL of the x402 resource | |
| body | No | Optional JSON request body for non-GET methods | |
| method | No | HTTP method (default GET) | |
| headers | No | Extra request headers (Accept/Content-Type auto-set) | |
| max_usdc | No | Spend cap for THIS call in USDC (default 0.25, must be ≤ 10) | |
| allowed_schemes | No | x402 schemes to accept (default ['exact']) | |
| allowed_networks | No | Networks to accept (default ['base']) |