Guest User

Untitled

a guest
Mar 20th, 2018
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. string privateKey = "0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  2. string senderAddress = "0xXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
  3.  
  4. var account = new Account(privateKey);
  5. var web3 = new Web3(account, "https://rinkeby.infura.io/cu9QSOeCCcK1lbKZrPey");
  6.  
  7. var password = "xxxxxxx"; // where does this come from? the meta mask password???
  8.  
  9. // error on the line below
  10. var unlockResult = await web3.Personal.UnlockAccount.SendRequestAsync(senderAddress, password, new HexBigInteger(120));
Add Comment
Please, Sign In to add comment