Can any one help me to find the solution, if I received a Ether in my wallet, I should be able to send 1% back to the Payee automatically?

Thanks Amit M


This can not be achieved from a 'normal' wallet address. Instead you will need to write and deploy a smart contract.

Here is an example of a smart contract written in Solidity.

Have a read through, and have a play. Distic has detailed a basic example which will achieve what you want.

You can get some free Ether on the Ropsten test network to practice and verify that your code works as expected.

  • Thanks Thomas , I am planning to automate my wallet cash backs. – Amit Modi Aug 8 '17 at 13:11
  • Can I use FallBack Method in that Case? – Amit Modi Aug 13 '17 at 16:30

I don't think you can do that directly, but you can deploy a smart contract with the following instructions:

function () public payable { msg.sender.send(msg.value*0.01); myAddress.send(msg.value*0.99); }

where myAddress is your address. Then you will have to ask the payee to send his ether to your contract's address.

  • Well, a smart contract is automatic. Once deployed you give its address instead of yours, and you receive the payments in your pocket. – Distic Aug 8 '17 at 13:28
  • Can I use FallBack Method in that Case? – Amit Modi Aug 13 '17 at 16:30

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.