payanagent_buy
Buy any offer (native or ecosystem — all 24k+ work the same) via the universal x402 route POST /x402/:offerId. Anonymous: no account or API key; the wallet is the identity. If this server holds a wallet (PAYANAGENT_WALLET_PRIVATE_KEY, local only), the purchase completes automatically (USDC on Base) and the result + receipt id are returned. Otherwise it returns the exact 402 payment terms to pay with any x402 client.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | JSON payload the service expects (shape per the offer's inputSchema). | |
| offerId | Yes |