@midnight-ntwrk/midnight-js-types v0.2.5 • API
Midnight.js API Reference v0.2.5 / @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: BalancedTransaction
A balanced and proven transaction.
Returns
Promise
<string
>
The transaction identifier of the submitted transaction.