Skip to content

Instantly share code, notes, and snippets.

@wisthsb1519
Last active December 1, 2019 23:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wisthsb1519/23c4d489caa70369759019db720b5d69 to your computer and use it in GitHub Desktop.
Save wisthsb1519/23c4d489caa70369759019db720b5d69 to your computer and use it in GitHub Desktop.
// define the recoveredAccount and being the logic to send a transaction
sendTransaction = () => {
let mnemonic = this.props.mnemonic;
let recoveredAccount = algosdk.mnemonicToSecretKey(mnemonic);
this.startTransaction(recoveredAccount).catch(e => {
console.log(e);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment