> ## Documentation Index
> Fetch the complete documentation index at: https://hedera-0c6e0218-docs--429.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](/hedera/sdks-and-apis/hedera-api/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](/hedera/sdks-and-apis/hedera-api/basic-types/contractid)     | the contract for which information is requested                                                                                                     |

## ContractGetBytecodeResponse

Response when the client sends the node ContractGetBytecodeQuery

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