Hi, I am trying to create a react js website that can transfer asset from one account to another using stateful smart contract. Need a code to optin and transfer asset, only using public key. Please help me.
This is the line where error occurs:
let opttxn = algosdk.makeAssetTransferTxnWithSuggestedParams(lsig.address(), accounts.address, closeRemainderTo, revocationTarget, amount, note, item.title, params);
Using Algosigner for wallet, If there is a way to fix this or any other method to replace this suggest in reply.
Trying to use this function from js-algosdk. Looking forward for reply.