Run a paid resource (x402)
wafermap_callRuns one Wafermap resource and pays its exact USD price over x402, in USDG on Robinhood Chain or USDC on Solana, Base, Arbitrum, Polygon, Arc or Soneium. Send a signed x402 v2 PaymentPayload in params._meta["x402/payment"]; without it the tool returns isError with the payment requirements (price, networks, payTo) to sign. The work runs before the payment settles, so failed calls are never charged; a successful call returns the result plus a receipt with the transaction hash in _meta["x402/payment-response"]. Agents without an x402 wallet can use the Wafermap CLI (wafermap mcp), which pays automatically within spending caps.
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": {
"resource": "<resource>"
},
"name": "wafermap_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Input object matching the resource's schema from wafermap_resource_schema, e.g. {"network":"base"}. | |
| payer | No | Optional: the EVM wallet that will sign the payment. A wallet holding 100,000 $WAFERMAP on Robinhood Chain is quoted 50% less for Wafermap's own resources (checked again against the signer). | |
| resource | Yes | Resource id from wafermap_resources, e.g. "gas-now". |