> ## Documentation Index
> Fetch the complete documentation index at: https://hedera-0c6e0218-docs-evm-account-model.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# ContractGetByteCode

## ContractGetBytecodeQuery

Get the bytecode for a smart contract instance

| Field        | Type                                                         | Description                                                                                                                                         |
| ------------ | ------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `header`     | [QueryHeader](/reference/protobuf/miscellaneous/queryheader) | standard info sent from client to node, including the signed payment, and what kind of response is requested (cost, state proof, both, or neither). |
| `contractID` | [ContractID](/reference/protobuf/basic-types/contractid)     | the contract for which information is requested                                                                                                     |

## ContractGetBytecodeResponse

Response when the client sends the node ContractGetBytecodeQuery

| Field      | Type                                                               | Description                                                                                                      |
| ---------- | ------------------------------------------------------------------ | ---------------------------------------------------------------------------------------------------------------- |
| `header`   | [ResponseHeader](/reference/protobuf/miscellaneous/responseheader) | standard response from node to client, including the requested fields: cost, or state proof, or both, or neither |
| `bytecode` | bytes                                                              | the bytecode                                                                                                     |
