@midnight-ntwrk/midnight-js-contracts v0.2.5 • API
Midnight.js API Reference v0.2.5 / @midnight-ntwrk/midnight-js-contracts / createUnprovenDeployTxFromVerifierKeys
Function: createUnprovenDeployTxFromVerifierKeys()
createUnprovenDeployTxFromVerifierKeys<
PS
,C
>(verifierKeys
,coinPublicKey
,options
):Promise
<UnsubmittedDeployTxData
<PS
>>
Calls a contract constructor and creates an unbalanced, unproven, unsubmitted, deploy transaction from the constructor results.
Type parameters
• PS
• C extends Contract
<PS
, Witnesses
<PS
>>
Parameters
• verifierKeys: [ImpureCircuitId
<C
>, VerifierKey
][]
The verifier keys for the contract being deployed.
• coinPublicKey: string
The Zswap coin public key of the current user.
• options: DeployTxOptions
<PS
, C
>
Configuration.
Returns
Promise
<UnsubmittedDeployTxData
<PS
>>
A promise that contains all data produced by the contract constructor call and an unproven deployment transaction assembled from the contract constructor result.