fetch_contract
Retrieve verified smart contract source code and ABI from Blockscout for any supported chain.
Instructions
Fetch verified smart contract source code and ABI from Blockscout
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>",
"chain": "<chain>"
},
"name": "fetch_contract"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Contract address (0x...) | |
| chain | Yes | Chain name or ID: "ethereum", "base", "arbitrum", "bsc", "polygon", etc. |