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
Parameter | Type | Value |
---|---|---|
Content-Type | String | application/json |
Authorization | String | Bearer <your api key> |
Encryptedkey | String | Encrypted key |
Walletname | String | Wallet name |
Body
Parameter | Type | Description |
---|---|---|
signedTxHash | String | Transaction hash response from the sign-raw-transaction endpoint |
Responses
200: OK - Broadcast Transaction successfully!
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
Feedback sent
We appreciate your effort and will try to fix the article