@midnight-ntwrk/midnight-js-contracts v0.2.5 • API
Midnight.js API Reference v0.2.5 / @midnight-ntwrk/midnight-js-contracts / submitTx
Function: submitTx()
submitTx<
C
,ICK
>(providers
,options
):Promise
<FinalizedTxData
>
Proves, balances, and submits an unproven deployment or call transaction using the given providers, according to the given options.
Type parameters
• C extends Contract
<any
, Witnesses
<any
>>
• ICK extends string
Parameters
• providers: MidnightProviders
<ICK
, PrivateStateSchema
>
The providers used to manage the transaction lifecycle.
• options: SubmitTxOptions
<ICK
>
Configuration.
Returns
Promise
<FinalizedTxData
>
A promise that resolves with the finalized transaction data for the invocation, or rejects if an error occurs along the way.