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 |
The transaction to submit. | |
useProvider |
boolean |
(Optional) |
Returns:
Promise<TransactionId>
{Promise
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.