Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
//create a transaction
let txn = {
"from": recoveredAccount.addr,
"to": "SOEI4UA72A7ZL5P25GNISSVWW724YABSGZ7GHW5ERV4QKK2XSXLXGXPG5Y",
"fee": params.fee,
"amount": 100000,
"firstRound": params.firstRound,
"lastRound": params.lastRound,
"genesisID": params.genesisID,
"genesisHash": params.genesisHash,
};
let rawSignedTxn = algosdk.signLogicSigTransaction(txn, lsig);
//Submit the lsig signed transaction
let tx = await algodclient.sendRawTransaction(rawSignedTxn.blob).do();
console.log("Transaction : " + tx.txId);
})().catch(e => {
console.log(e);