I am trying to send automatic payments in C# by linking a button to web3 code for a transfer.
Essentially I need to create a function/button that sends Ether or Tokens out of my wallet when it is clicked.
So for example I could just hit the button and the transaction sends to the address I hardcoded in at the amount of gwei I chose. I would like to do this in C#.
For for example in C#, it might look something like
public void sendMoney(){
transfer.initiate(AMOUNT_OF_ETH, MY_PRIVATE_KEY, DestinationWallet.eth, 1 gwei, GAS_LIMIT_HERE);
}
Now I'd have a function that I could call anytime to send the ETH or tokens to my destination wallet.
I understand the wallet could be totally drained if the button is spammed, and that's no problem.
Is there a way to set up these auto buttons so payments could be send without using metamask?
Thanks for any input
curl. See https://github.com/ethereum/wiki/wiki/JSON-RPC. You might want to look into sendRawTransaction – libertylocked Nov 13 '17 at 03:29