Create Raw Transaction

Creating a raw transaction on the Litecoin blockchain involves constructing a transaction manually, specifying inputs, outputs, and necessary script operations.

Create a raw transaction (API reference)

POST /api/Litecoin/Create-Raw-LTC-Transactions

This post requests to create a raw transaction 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

Usev2*

String

Value should be true or yes

Request Body

Name
Type
Description

senderAddress*

String

Sender's address

recipientAddress*

String

Receiver's address

amount*

Float

Amount to send

Create Raw Transaction with Javascript SDK

Liaas SDK package installation

/** 
 * Create Raw 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.createRawTransaction(
nodeUrl_or_apiAccessKey,
walletName,
encryptedpassphrase,
recipientAddress,
amount,
data,
senderAddress)

Last updated

Was this helpful?