Skip to main content

Midnight.js API Reference v1.0.0


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

Function: submitDeployTx()

Creates and submits a deploy transaction for the given contract.

Param

The providers used to manage the deploy lifecycle.

Param

Configuration.

Call Signature

submitDeployTx<C>(providers, options): Promise<FinalizedDeployTxData<C>>

Type Parameters

C

C extends Contract<undefined, Witnesses<undefined>>

Parameters

providers

ContractProviders<C, ImpureCircuitId<C>, unknown>

options

DeployTxOptionsBase<C>

Returns

Promise<FinalizedDeployTxData<C>>

Call Signature

submitDeployTx<C>(providers, options): Promise<FinalizedDeployTxData<C>>

Type Parameters

C

C extends Contract<any, Witnesses<any>>

Parameters

providers

ContractProviders<C>

options

DeployTxOptionsWithPrivateStateId<C>

Returns

Promise<FinalizedDeployTxData<C>>

Feedback