Broadcast Transaction

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.

Broadcast transaction (API reference)

POST /api/Litecoin/broadcast-transactions

This post requests to broadcast a signed transactions on the Litecoin blockchain

Headers

Request Body

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);

Last updated