Algosigner methods - General - Algorand
Algosigner methods
post by isha on Mar 21, 2023
Algosigner has been updated so are the method. In the updated version what is the alternative for
“Algosigner.algod”
post by janmarcano on Mar 21, 2023
The new ARC methods of AlgoSigner are expected to be used alongside a SDK client:
// Calls like this:
AlgoSigner.algod({
ledger: 'TestNet',
path: '/v2/transactions/params'
})
.then(d => txParams = d)
.catch(e => console.error(e));
// Should be changed into this:
let client = new algosdk.Algodv2(token, server, port, headers);
let suggestedParams = await client.getTransactionParams().do();
For posting of signed transactions, you can use either algorand.postTxns() or algorand.signAndPostTxns()
Additional info can be found in the documentation.