0

I unlocked my account and get result true but if I try to send:

var transactionHash = await contractname.SendTransactionAsync(contractAddress, new HexBigInteger(calculatedGas.HexValue), new HexBigInteger(2), inputA);

I only get that my account is locked:

Nethereum.JsonRpc.Client.RpcResponseException: account is locked

Has someone an idea why?

0

(Not enough rep to comment.)

Need more information:

  • client name and version (Nethereum?..);
  • command used to unlock account (i.e. are you sure it's unlocked?).

In geth, specifying {from: eth.accounts[42]} could help, possibly there is something similar for Nethereum.


Nethereum docs shows using SendTransactionAsync() with the first argument being the senderAddress. Is that what you have in contractAddress?..

Mind you, I know zero .Net.

  • Oh, I really mixed up the variables. Thx! Sometimes a solution can be so easy. – Pepper Mar 30 '17 at 11:59

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.