Hey guys,
Just want to start off by saying I'm not a professional programmer. I'm a complete hobbyist, but I've been messing around on the Rinkeby test net writing and compiling very simple smart contracts cause I thought it'd be fun.
I am currently just executing my smart contract's functions through the Ethereum wallet app via the contract's admin page. I was wondering if it is possible to make a smart contract that executes a function when it receives a regular ether transaction to it, and not by the function calls through the wallet app.
So you get what I'm talking about, here's an extremely simple and pointless example:
Every time the address received a transaction of ether from anyone sending to it, it would automatically increase a "deposits" variable by 1, without the sender or admin having to tell it to do that.
Is something like that possible?
Thanks,
Joe
0 ·
Comments
So, what you're saying is that I'd need to write that functionality into the actual wallet client and not the smart contract itself?
Thanks,
Joe