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 or Polygon. 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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | No | Input object matching the resource's schema from wafermap_resource_schema, e.g. {"network":"base"}. | |
| resource | Yes | Resource id from wafermap_resources, e.g. "gas-now". |