# ContractDeploy

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

A contract deployment.

```
type ContractDeploy implements ContractAction {

  address: HexEncoded!

  state: HexEncoded!

  zswapState: HexEncoded!

  transaction: Transaction!

  unshieldedBalances: [ContractBalance!]!

}
```

### Fields[​](#fields "Direct link to Fields")

#### [`ContractDeploy.address`](#address) ● [`HexEncoded!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/hex-encoded.md) non-null scalar[​](#address "Direct link to address")

The hex-encoded serialized address.

#### [`ContractDeploy.state`](#state) ● [`HexEncoded!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/hex-encoded.md) non-null scalar[​](#state "Direct link to state")

The hex-encoded serialized state.

#### [`ContractDeploy.zswapState`](#zswap-state) ● [`HexEncoded!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/hex-encoded.md) non-null scalar[​](#zswap-state "Direct link to zswap-state")

The hex-encoded serialized contract-specific zswap state.

#### [`ContractDeploy.transaction`](#transaction) ● [`Transaction!`](https://docs.midnight.network/api-reference/midnight-indexer/types/interfaces/transaction.md) non-null interface[​](#transaction "Direct link to transaction")

Transaction for this contract deploy.

#### [`ContractDeploy.unshieldedBalances`](#unshielded-balances) ● [`[ContractBalance!]!`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/contract-balance.md) non-null object[​](#unshielded-balances "Direct link to unshielded-balances")

Unshielded token balances held by this contract.

### Interfaces[​](#interfaces "Direct link to Interfaces")

#### [`ContractAction`](https://docs.midnight.network/api-reference/midnight-indexer/types/interfaces/contract-action.md) interface[​](#contractaction- "Direct link to contractaction-")

A contract action.

### Member Of[​](#member-of "Direct link to Member Of")

[`ContractCall`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/contract-call.md) object
