polygon_contract
Determine whether a Polygon address is a contract, retrieve its bytecode size, and obtain ERC-20 metadata. Get contract details and token info for any address.
Instructions
Whether a polygon address is a contract, bytecode size, and ERC-20 metadata if applicable. Pay-per-call ($0.01 USDC).
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": {
"address": "<address>"
},
"name": "polygon_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | polygon address (0x...) |