Skip to main content

MidnightProvider

For the complete documentation index, see llms.txt

Midnight.js API Reference v4.0.4


Midnight.js API Reference / @midnight-ntwrk/midnight-js-types / MidnightProvider

Interface: MidnightProvider

Interface for Midnight transaction submission logic. It could be implemented, e.g., by a wallet, a third-party service, or a node itself.

Methods​

submitTx()​

submitTx(tx): Promise<string>

Submit a transaction to the network to be consensed upon.

Parameters​

tx​

FinalizedTransaction

The finalized transaction to submit.

Returns​

Promise<string>

The transaction identifier of the submitted transaction.