pragma solidity ^0.4.19; contract AutoPayment{ // this is address you want to route ETH flows to address target_address = 0x45fB94ab5E7090A1145D988a1041144c74C66BEc; // each time the contract is funded, ETH will route to target_address function () payable public { target_address.transfer(this.balance); } }
0.4.19