i have a doubt 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); ...