Most of the examples that I see on smart contract, involves ether being transferred to someone as part of the transaction. My question is, if my smart contract is just doing X++, where X is some counter, then
- What would be the transaction that will be sent out to miners to be included in the block as there is no transfer of ethers.
- The gas fee to execute the transaction by the user of the smart contract, is it allocated to the miner who mined the transaction?
- IF all the rest of the nodes, that verify the block also have to run the smart contracts, wouldnt they be wasting their resource but doing equal amount of work as the miner did? (minus the proof of stake).