Skip to main content

Midnight.js API Reference v1.0.0


Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / DeployContractOptionsWithPrivateState

Type Alias: DeployContractOptionsWithPrivateState<C>

DeployContractOptionsWithPrivateState<C> = DeployContractOptionsBase<C> & object

deployContract base options with information needed to store private states; only used if the contract being deployed has a private state.

Type declaration

initialPrivateState

readonly initialPrivateState: PrivateState<C>

The private state to run the circuit against.

privateStateId

readonly privateStateId: PrivateStateId

An identifier for the private state of the contract being found.

Type Parameters

C

C extends Contract