I was using Nethereum for one of my application, there I found I have to sign transaction before calling a smart contract method, which was OK. I was using infura api.
When I was calling SendTransactionAsync()
.
There was an error occured
eth_sendTransaction does not exist/is not available
I found a solution to use Private key and get signed account
IAccount account = new Account(privateKey);
But i am not happy with this solution, I don't want deal with someone's private key in my Code.
Is there any alternative solution? and Please tell me is it a good idea or ok to use private key in your code?