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
Parameter | Type | Description |
---|---|---|
Content-Type | String | application/json |
Authorization | String | Bearer <your api key> |
Encryptedkey | String | Encrypted key |
Walletname | String | Wallet name |
addressPrivateKey | String | Sender's address private key |
txhash | String | The transaction hash obtained from the Create-Raw-Transaction Endpoint response |
address | String | Recipient's wallet address |
amount | Float | Amount to send |
data | String | A message to include in the transaction |
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
Feedback sent
We appreciate your effort and will try to fix the article