These are chat archives for Nethereum/Nethereum
hello, I have such situation
var account = Account.LoadFromKeyStore(jsonSecretString, "MyPassword"); var web3 = new Web3(account, "126.96.36.199:8545"); var contract = web3.Eth.GetContract(contractAbi, contractAddress); var transferFromFunction = contract.GetFunction("transferFrom"); var transferResult = await transferFromFunction.CallAsync<bool>(accountWithTokensAddress, someTestAddressWhereIwantToTransferTokens, 1000); //transferResult always false //also I tried var result = await transferFromFunction.SendTransactionAsync(accountAddressFromLoadFromKeyStore, accountWithTokensAddress, someTestAddressWhereIwantToTransferTokens, 1000); //intrinsic gas too low
everything works fine when I'm using ethereum wallet(of course it settuped to local node - 127.0.0.1:8545 and I have private key in keystore)
How I can figure out what the problem?
Add private key to dedicated node look like bad idea.