Create Raw Transaction

Created by Admin KL, Modified on Wed, 21 Feb at 1:54 PM by Admin KL

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


/api/LTC/Main/create-raw-transaction
Create a raw transaction
This post request to create a raw transaction on the Litecoin blockchain




ParameterTypeDescription
Content-TypeStringapplication/json
AuthorizationStringBearer <your api key>
EncryptedkeyStringEncrypted key
WalletnameStringWallet name
senderAddressStringSender's address
recipientAddressStringRecipient's address
amountFloatAmount to send
dataStringA message to use in creating the transaction


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, wallet name, and the encrypted key
const response = await liaasSdk.createRawTransaction(
apiAccessKey,
walletName,
encryptedpassphrase,
recipientAddress,
amount,
data,
senderAddress)

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 at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article