Skip to main content

Midnight.js API Reference v1.0.0


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

Type Alias: DeployTxOptionsWithPrivateState<C>

DeployTxOptionsWithPrivateState<C> = DeployTxOptionsBase<C> & object

Configuration for creating deploy transactions for contracts with private state. This configuration used as a base type for the DeployTxOptionsWithPrivateStateId configuration. It is also used directly as parameter to createUnprovenDeployTx which doesn't need to save private state (and therefore doesn't need a private state ID) but does need to supply an initial private state to run the contract constructor against.

Type declaration

initialPrivateState

readonly initialPrivateState: PrivateState<C>

The private state to run the contract constructor against.

Type Parameters

C

C extends Contract