# PublicContractStates

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

[**Midnight.js API Reference v4.1.0**](https://docs.midnight.network/api-reference/midnight-js.md)

***

[Midnight.js API Reference](https://docs.midnight.network/api-reference/midnight-js/packages.md) / [@midnight-ntwrk/midnight-js-contracts](https://docs.midnight.network/api-reference/midnight-js/@midnight-ntwrk/midnight-js-contracts.md) / PublicContractStates

# Type Alias: PublicContractStates

> **PublicContractStates** = `object`

Object containing the publicly visible states of a contract.

## Properties[​](#properties "Direct link to Properties")

### contractState[​](#contractstate "Direct link to contractState")

> `readonly` **contractState**: `ContractState`

The (public) ledger state of a contract.

***

### ledgerParameters[​](#ledgerparameters "Direct link to ledgerParameters")

> `readonly` **ledgerParameters**: `LedgerParameters`

The ledger parameters in effect on the block associated with the contract state.

***

### zswapChainState[​](#zswapchainstate "Direct link to zswapChainState")

> `readonly` **zswapChainState**: `ZswapChainState`

The (public) Zswap chain state of a contract.
