Eth call, Polygon contract call
polygon_callRead-only contract call on Polygon PoS (eth_call) at the latest block, without a transaction or gas: send ABI-encoded calldata, or a function signature such as balanceOf(address) with args and the call is encoded and its result decoded for you. Use to read any view function that has no dedicated tool (the example reads USDC totalSupply). Calldata up to 8 KB; a call that reverts is 422 with the reason, uncharged. Example: to=0x3c499c542cEF5E3811e1192ce70d8cC03d5c3359, data=0x18160ddd. Price $0.01/call via x402 USDC or a card key (/credits), first 25 free; failed calls free. Reads or computes only and changes nothing; each call is charged, so repeats are not free.
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": {
"to": "<to>",
"data": "<data>"
},
"name": "polygon_call"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | 0x contract address to call | |
| args | No | Arguments for a function signature in data: comma separated, or a JSON array for arrays and tuples | |
| data | Yes | 0x ABI-encoded calldata (4-byte selector plus arguments), or a function signature: totalSupply(), balanceOf(address), or with its result types, balanceOf(address) returns (uint256) | |
| from | No | Optional 0x sender address for calls that check msg.sender | |
| returns | No | Result types to decode when data is a signature without them, for example uint256 or address,uint8 |