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

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

This post request to create a raw transaction on the Litecoin blockchain

Headers

NameTypeDescription

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

NameTypeDescription

senderAddress*

String

Sender's address

recipientAddress*

String

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

Last updated