Is it possible to call a contract function just by making a transction to a address

admin

Administrator
Staff member
Currently I'm trying to learn ethereum and smart contract. I read this tutorial: <a href="https://dappsforbeginners.wordpress.com/tutorials/your-first-dapp/" rel="nofollow">Dapps for beginners</a>
I'm just wondering now, if I have to call everytime a function from a contract (as in the tutorial above) or is it possible that a specific function is executed when I just transfer some ethereum to that contract address?

Example:
I execute the code below, and the receiver address is also a address with a contract. One specific function should now be executed at the receiver function.

eth.sendTransaction({from:sender, to:receiver, value: amount})