get_code
Retrieve contract bytecode for any address; returns 0x when the address is not a contract. Use it to verify contract existence or inspect deployed code.
Instructions
Get bytecode at an address. Returns 0x if not a 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": {
"address": "<address>"
},
"name": "get_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chain | No | Chain name or ID (default: ethereum) | |
| address | Yes | Address (0x...) |