explorer_get_contract_source
Retrieve verified source code for any smart contract by providing its address and chain ID.
Instructions
Get verified source code for a smart contract.
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": {
"chainId": "<chainId>",
"contractAddress": "<contractAddress>"
},
"name": "explorer_get_contract_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | Chain ID for the target network (required — no default for indexed data) | |
| contractAddress | Yes | Contract address (0x-prefixed) |