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
Name
Type
Description
Content-Type
application/json
Authorization*
Bearer <your api key>
Attach your API key here
wallet
String
Wallet name (optional)
Usev2*
String
Value should be true or yes
Request Body
Name
Type
Description
signedTxHash*
String
Transaction hash response gotten from the sign-raw-transaction endpoint
Broadcast Transaction with Javascript SDK
Liaas SDK package installation
/**
* Broadcast Transaction on Litecoin Blockchain
**/
//all the parameters specified here are the same as all the parameters in the API implementation
//pass your API key or Node URL, wallet name, and the encrypted key
const response = await liaasSdk.broadcastTransaction(
nodeUrl_or_apiAccessKey,
walletName,
encryptedpassphrase,
signedTxHash);
Last updated
Was this helpful?