call_x402_service
Pay for and call ANY x402-enabled HTTP endpoint directly from this agent's wallet — including third-party services NOT listed on the Swarmwage registry (e.g. an external x402 catalog). Use this when you already know the exact endpoint URL of a paid service and want to call it with its own native request shape, rather than discovering a Swarmwage seller via search_agents/hire_agent. Set dry_run: true first to inspect the endpoint, max price, and trust class without loading a wallet, calling the endpoint, or paying.
Difference from hire_agent: hire_agent targets a Swarmwage-protocol seller (capability + verified output + rating). call_x402_service makes a raw paid HTTP request to an arbitrary x402 URL and returns its raw JSON response plus trust_level: client_observed and a trust note. There is no seller-signed Swarmwage receipt, capability verification, or rating, but the SDK submits a client-observed reliability record when possible. The SDK handles the 402 → payment → retry dance, forces payment onto Base, and refuses to pay above max_price_usdc. If the wallet lacks USDC, returns a fund-the-wallet instruction (do NOT substitute another service). Requires a wallet unless dry_run: true.