Sign Transaction

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

Signing a transaction involves using the private key associated with the input's address to sign the transaction inputs.


/api/LTC/Main/sign-raw-transaction


Sign a raw transaction

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

ParameterTypeDescription
Content-TypeStringapplication/json
AuthorizationStringBearer <your api key>
EncryptedkeyStringEncrypted key
WalletnameStringWallet name
addressPrivateKeyStringSender's address private key
txhashStringThe transaction hash obtained from the Create-Raw-Transaction Endpoint response
addressStringRecipient's wallet address
amountFloatAmount to send
dataStringA message to include in the transaction


Sign Raw Transaction with Javascript SDK

Liaas SDK package installation

/** 
 * Sign 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.signRawTransaction(
apiAccessKey,
walletName,
encryptedpassphrase,
addressPrivateKey,
txhash)



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