get_contract_abi
Retrieve the ABI JSON for a verified Kaia contract by address from KaiaScan, selecting mainnet or Kairos, to decode or interact with its functions.
Instructions
Get the ABI of a verified contract from KaiaScan. Path: GET /api/v1/contracts/:contractAddress/abi. Returns ABI JSON as text.
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_abi"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | mainnet or kairos (default: mainnet) | |
| contractAddress | Yes | Contract address (0x...) |