I'm kinda new to smart contracts, searched a lot, but hope someone here can help me out.
I'll try to explain as good as I can. I'm mining Ethereum with a couple of rigs.
Each individual rig auto-sends the ETH to a specific ETH address via pool. So now I have multiple (30+) ETH addresses that are receiving ETH. Very frustrating to check every address and send the ETH to my main account by hand.
Is there a way that I can auto-send ETH from each account to my MAIN account with a smart contract (solidity)?
Let's say; Address 1 receives 0.1 ETH, auto send (immediately after transaction comes in) 0.1 ETH to MAIN ETH address.
The addresses are receiving different amounts of ETH, some 0.1 ETH some 0.05 ETH, etc. No matter what amount is send to the mining address, it must be transferred to the main account.
I hope someone can help me out with this.
Edit: Example
0x0000ADRESS1: 0.1ETH
0x0000ADRESS2: 0.3ETH
0x0000ADRESS3: 0.2ETH
0x0000ADRESS4: 0.1ETH
(Write an smart contract for each address above, when ETH is in above addresses, transfer ETH to MAIN)
0x0000MAINADRESS: 0.7ETH
function () public payable { mainAccount.transfer(msg.value); }