contract source
contract_sourceVerified source code of a smart contract (follows EIP-1967 proxies to the implementation): every source file, ABI, contract name, compiler, optimizer settings, EVM version and SPDX licenses, from Sourcify. Costs $0.003 USDC per call (x402).
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": "contract_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | ||
| address | Yes | ||
| content | No | Include file contents (default true) | |
| follow_proxy | No |