# ContractBalance

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

Represents a token balance held by a contract. This type is exposed through the GraphQL API to allow clients to query unshielded token balances for any contract action (Deploy, Call, Update).

```
type ContractBalance {

  tokenType: HexEncoded!

  amount: String!

}
```

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

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

Hex-encoded token type identifier.

#### [`ContractBalance.amount`](#amount) ● [`String!`](https://docs.midnight.network/api-reference/midnight-indexer/types/scalars/string.md) non-null scalar[​](#amount "Direct link to amount")

Balance amount as string to support larger integer values (up to 16 bytes).

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

[`ContractAction`](https://docs.midnight.network/api-reference/midnight-indexer/types/interfaces/contract-action.md) interface ● [`ContractCall`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/contract-call.md) object ● [`ContractDeploy`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/contract-deploy.md) object ● [`ContractUpdate`](https://docs.midnight.network/api-reference/midnight-indexer/types/objects/contract-update.md) object
