Get verified contract source
get_contract_sourceRetrieve verified smart contract source code, compiler settings, and ABI from Blockscout using a contract address. Returns empty if the contract is not verified.
Instructions
Verified source code, compiler settings, and ABI of a contract from the Blockscout explorer (empty result if the contract is not verified).
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": "get_contract_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | Contract address | |
| network | No | Target network: "l1" (default) or "l2-testnet" | l1 |