Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 641 Bytes

README.md

File metadata and controls

32 lines (20 loc) · 641 Bytes

algorand-session-wallet-nextjs

Upgraded to work on Next JS 11.x / Added Native pera-connect / Native defly-connect / Native Daffi Wallet

a merged blend of: https://github.com/barnjamin/algorand-session-wallet-example and https://github.com/matamicenclimate/algorand-session-wallet2 and some other changes along the way.

yarn add algorand-session-wallet-nextjs
npm -i algorand-session-wallet-nextjs
const sw = new SessionWallet("TestNet", "algosigner-wallet")
if(!sw.connect()) return alert("Couldnt connect")

//...

const accts = sw.accountList()

//...

sw.signTxn([txnblobs])

//...

sw.disconnect()