This forum is a read-only archive. Posting, replying and signing in are disabled.

Algosigner methods

isha

Algosigner has been updated so are the method. In the updated version what is the alternative for
“Algosigner.algod”

janmarcano

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.