deployContract
Midnight.js API Reference v2.0.2
Midnight.js API Reference / @midnight-ntwrk/midnight-js-contracts / deployContract
Function: deployContract()
Creates and submits a contract deployment transaction. This function is the entry point for the transaction construction workflow and is used to create a DeployedContract instance.
Paramβ
The providers used to manage the transaction lifecycle.
Paramβ
Configuration.
Throwsβ
DeployTxFailedError If the transaction is submitted successfully but produces an error when executed by the node.
Call Signatureβ
deployContract<
C>(providers,options):Promise<DeployedContract<C>>
Type Parametersβ
Cβ
C extends Contract<undefined, Witnesses<undefined>>
Parametersβ
providersβ
ContractProviders<C, ImpureCircuitId<C>, unknown>
optionsβ
Returnsβ
Promise<DeployedContract<C>>
Call Signatureβ
deployContract<
C>(providers,options):Promise<DeployedContract<C>>
Type Parametersβ
Cβ
C extends Contract<any, Witnesses<any>>
Parametersβ
providersβ
optionsβ
DeployContractOptionsWithPrivateState<C>
Returnsβ
Promise<DeployedContract<C>>