cast_code
Fetches deployed smart contract bytecode from a specified address and RPC URL, with an optional block tag to query historical state.
Instructions
Get the deployed bytecode of a contract (cast code).
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>",
"rpcUrl": "<rpcUrl>"
},
"name": "cast_code"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| rpcUrl | Yes | RPC URL of the network | |
| address | Yes | Address to get the deployed bytecode of | |
| blockTag | No | Block to query at, e.g. "latest" or a number |