Skip to main content

createUnprovenDeployTx

For the complete documentation index, see llms.txt

Midnight.js API Reference v4.1.0


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

Function: createUnprovenDeployTx()

Calls a contract constructor and creates an unbalanced, unproven, unsubmitted, deploy transaction from the constructor results.

Param​

The providers to use to create the deploy transaction.

Param​

Configuration.

Remarks​

The returned UnsubmittedDeployTxData is privacy-sensitive and carries the unproven transaction, signing key, initial private state, and initial Zswap state. See that type for handling guidance before logging, serializing, or transmitting the result.

Call Signature​

createUnprovenDeployTx<C>(providers, options): Promise<UnsubmittedDeployTxData<C>>

Type Parameters​

C​

C extends Contract<undefined, Witnesses<undefined>>

Parameters​

providers​

UnprovenDeployTxProviders<C>

options​

DeployTxOptionsBase<C>

Returns​

Promise<UnsubmittedDeployTxData<C>>

Call Signature​

createUnprovenDeployTx<C>(providers, options): Promise<UnsubmittedDeployTxData<C>>

Type Parameters​

C​

C extends Any

Parameters​

providers​

UnprovenDeployTxProviders<C>

options​

DeployTxOptionsWithPrivateState<C>

Returns​

Promise<UnsubmittedDeployTxData<C>>