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


Staff member
Currently I'm trying to learn ethereum and smart contract. I read this tutorial: <a href="" 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?

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})