Skip to main content

Midnight.js API Reference v1.0.0


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

Function: submitCallTx()

Creates and submits a transaction for the invocation of a circuit on a given contract.

Param

The providers used to manage the invocation lifecycle.

Param

Configuration.

Call Signature

submitCallTx<C, ICK>(providers, options): Promise<FinalizedCallTxData<C, ICK>>

Type Parameters

C

C extends Contract<undefined, Witnesses<undefined>>

ICK

ICK extends string

Parameters

providers

SubmitTxProviders<C, ICK>

options

CallTxOptionsBase<C, ICK>

Returns

Promise<FinalizedCallTxData<C, ICK>>

Call Signature

submitCallTx<C, ICK>(providers, options): Promise<FinalizedCallTxData<C, ICK>>

Type Parameters

C

C extends Contract<any, Witnesses<any>>

ICK

ICK extends string

Parameters

providers

ContractProviders<C>

options

CallTxOptionsWithPrivateStateId<C, ICK>

Returns

Promise<FinalizedCallTxData<C, ICK>>