DeployTxOptionsWithPrivateState
Midnight.js API Reference v3.1.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
readonlyinitialPrivateState:Contract.PrivateState<C>
The private state to run the contract constructor against.
Type Parameters
C
C extends Contract.Any