get_contract_source
Retrieve verified smart contract source code from KaiaScan using a contract address; returns 'Unverified' when no source is available.
Instructions
Get verified contract source code from KaiaScan. Path: GET /api/v1/contracts?contractAddresses=:address (contract info); if source is not available returns 'Unverified'.
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": {
"contractAddress": "<contractAddress>"
},
"name": "get_contract_source"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | mainnet or kairos (default: mainnet) | |
| contractAddress | Yes | Contract address (0x...) |