Skip to main content

Midnight.js API Reference v1.0.0


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

Function: createUnprovenDeployTxFromVerifierKeys()

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

Param

The verifier keys for the contract being deployed.

Param

The Zswap coin public key of the current user.

Param

Configuration.

Call Signature

createUnprovenDeployTxFromVerifierKeys<C>(verifierKeys, coinPublicKey, options): UnsubmittedDeployTxData<C>

Type Parameters

C

C extends Contract<undefined, Witnesses<undefined>>

Parameters

verifierKeys

[ImpureCircuitId<C>, VerifierKey][]

coinPublicKey

string

options

DeployTxOptionsBase<C>

Returns

UnsubmittedDeployTxData<C>

Call Signature

createUnprovenDeployTxFromVerifierKeys<C>(verifierKeys, coinPublicKey, options): UnsubmittedDeployTxData<C>

Type Parameters

C

C extends Contract<any, Witnesses<any>>

Parameters

verifierKeys

[ImpureCircuitId<C>, VerifierKey][]

coinPublicKey

string

options

DeployTxOptionsWithPrivateState<C>

Returns

UnsubmittedDeployTxData<C>