Can I use an account created in metamask using nethereum? I tried this:

var abi = @"";
var addressContract = "";
var myAddress = "xxxxx";
var password = "password";
var managedAccount = new ManagedAccount(myAddress, password);

var web3ManagedAccount = new Web3(managedAccount);
var contract = web3ManagedAccount.Eth.GetContract(abi, addressContract);

var method= contract.GetFunction("method");

SendTransactionAndWaitForReceiptAsync(from: myAddress, new HexBigInteger(3000), value: null, null, abcBytes, newAddress);

but return an error that say:The method personal_sendTransaction does not exist/is not available


I had a big mistake, I needed to pass the private key and not the password, thanks for your help

var abi = @"";
var addressContract = "0xA0XXXXX";
var myPriveteKey= "myKey";
var managedAccount = new ManagedAccount(myPriveteKey);
  • you need to check version of web3. Oct 11, 2019 at 8:10
  • Are you suggesting a transaction or are you actually performing the transaction on behalf of the user?
    – Zimano
    Jul 9, 2022 at 10:45

1 Answer 1


This is generally causing because of two problems :

  1. mismatch version of your web3
  2. forgot to unlock the account the send transactions.

So, try to change the version of web3 and try again or you need to unlock account that you are going to use for send transactions.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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