Skip to main content
Version: Next

sdk.blaze.submittransaction

Home > @blaze-cardano/sdk > Blaze > submitTransaction

Blaze.submitTransaction() method

Submits a transaction to the blockchain.

Signature:

submitTransaction(tx: Transaction, useProvider?: boolean): Promise<TransactionId>;

Parameters

Parameter

Type

Description

tx

Transaction

The transaction to submit.

useProvider

boolean

(Optional)

Returns:

Promise<TransactionId>

{Promise} - The transaction ID.

Exceptions

{Error} If the transaction submission fails.

Remarks

This method sends the provided transaction to the blockchain network using the configured wallet, or the configured provider if set.