These are chat archives for Nethereum/Nethereum

14th
Feb 2017
Priyank Jani
@PriyankJani_twitter
Feb 14 2017 07:26
Hi, I am facing this issuer right now. "json: cannot unmarshal string into Go value of type uint64 ". I just want to unlock node to start other opertion. Earlier it was not showing. Kindly help. here is my Code: var web3 = new Nethereum_Fork.Web3.Web3("http://localhost:8545");
var addressfrom = FromAddress;
var Unlock = await web3.Personal.UnlockAccount.SendRequestAsync(addressfrom, "test@123", new HexBigInteger(600));
Priyank Jani
@PriyankJani_twitter
Feb 14 2017 08:03
HI, Can anybody help? I am not able to unlock my account. What may be possible cause?
Artem
@Etrimus
Feb 14 2017 08:10
@PriyankJani_twitter
Maybe You dont`t need to use UnlockAccount? There is SignAndSendTransactionAsync method. You sends ether, calls the function and validates password without unlock-method.
Priyank Jani
@PriyankJani_twitter
Feb 14 2017 08:11
I haven't tried it. Thanks I will try and let you know. I want to host smart contract.
I guess for that we need to unlock account.
Priyank Jani
@PriyankJani_twitter
Feb 14 2017 08:16
OK. @Etrimus Thanks for A2A.
I am trying that right now.
Priyank Jani
@PriyankJani_twitter
Feb 14 2017 08:23
@Etrimus : I have the old version of Nethereum, so it dont have SignAndSendRequestAsync method.
Again stuck.
Artem
@Etrimus
Feb 14 2017 08:26
Maybe update? My version is 1.0.6. And already we have a new version 2.0 RC. I guess, update is really need.
Priyank Jani
@PriyankJani_twitter
Feb 14 2017 08:28
you are right.
updating with Nuget will do?
Artem
@Etrimus
Feb 14 2017 08:30
Yep, Nuget. But 2.0 is RC yet, so my opinion - 1.0.6
Priyank Jani
@PriyankJani_twitter
Feb 14 2017 08:39
ok. Thanks @Etrimus
Artem
@Etrimus
Feb 14 2017 08:40
Good luck)
Priyank Jani
@PriyankJani_twitter
Feb 14 2017 08:40
Actually I am in hurry for Demo and I opened my code after 3 months, so I think many things changed meanwhile.
Right I am fixing code to resolve that Error and update with new version after demo.
Because I might need to change at many places.
Artem
@Etrimus
Feb 14 2017 08:46
You might to read the 2.0 RC Changelog, there are some changes for programmers.
Priyank Jani
@PriyankJani_twitter
Feb 14 2017 08:53
Yes. I can see that while comparing old and new files.
Priyank Jani
@PriyankJani_twitter
Feb 14 2017 09:09
Hi @Etrimus .
I have updated code for unlock and getting new error now, it shows "could not decrypt key with given passphrase ". However I can create new Account from wallet with same passphrase but not able to unlock account.
What might be an issue?
Artem
@Etrimus
Feb 14 2017 09:38
This is alert from your node instance (Geth), not from the Nethereum. I recommend to update your Geth - https://geth.ethereum.org/downloads and try again.
Here people report a similar problem - https://github.com/ethereum/mist/issues/957#issuecomment-231973759
Maybe you create wallet account with another passwords?
Juan Blanco
@juanfranblanco
Feb 14 2017 09:45
@PriyankJani_twitter on the newer geth you have to use an integer for the duration of seconds when unlocking an account
@Etrimus that looks so obvious when you see it ! Thanks. Ill push a fix now
Priyank Jani
@PriyankJani_twitter
Feb 14 2017 11:50
@Etrimus and @juanfranblanco Thanks for your comment. I have updated code in old version of Nethereum for quick fix and downloaded new version of wallet. And it works.
Thank you so much for your kind help.
undertuga
@undertuga
Feb 14 2017 15:57
Any way to get peers list from a node, similar to the admin.peers command @ the geth client!?
Juan Blanco
@juanfranblanco
Feb 14 2017 19:38
@undertuga added on the latest commit