Buy with x402 (client-side wallet)
pinguproxy_buyStart an x402 purchase of residential GB or a datacenter pass (USDC on Base, no signup, no card). This hosted server holds no wallet and never pays: it locks a quote, checks it against max_usd and returns the 402 payment challenge for the user's own x402 wallet. Require explicit user approval before paying it.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"sku": "<sku>",
"max_usd": "<max_usd>"
},
"name": "pinguproxy_buy"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gb | No | Residential GB to buy when sku=payg (1-200) | |
| sku | Yes | payg = rotating residential GB; plan = 30-day datacenter pass | |
| max_usd | Yes | Highest price in USD the user approved; no challenge is issued above it | |
| plan_id | No | Datacenter plan_id from pinguproxy_catalog when sku=plan |