Broadcast Transaction

Created by Admin KL, Modified on Wed, 21 Feb 2024 at 01:56 PM by Admin KL

Broadcasting a transaction is the process of sending a signed transaction to the Litecoin network so that it can be validated and included in a block.


/api/LTC/Main/broadcast -transaction
Broadcast  transaction
This post requests to broadcast transactions on the Litecoin blockchai



Transaction Parameters

Header

ParameterTypeValue
Content-TypeStringapplication/json
AuthorizationStringBearer <your api key>
EncryptedkeyStringEncrypted key
WalletnameStringWallet name

Body

ParameterTypeDescription
signedTxHashStringTransaction hash response from the sign-raw-transaction endpoint

Responses

200: OK - Broadcast Transaction successfully!


Broadcast Transaction with Javascript SDK

Liaas SDK package installation

/** 
 * Broadcast Transactions on Litecoin Blockchain
 **/
 
 //all the parameters specified here are the same as all the parameters in the API implementation
 //pass your API key, wallet name, and the encrypted key
const response = await liaasSdk.broadcastTransaction(
apiAccessKey, 
walletName, 
encryptedpassphrase, 
signedTxHash);

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article