2

I am thinking to create a smart contract where miners are not only incetivized by gas price but where basically the miner can get other assets like erc20 tokens if he/she mine my transaction in the next block. This would look like the tx fees in Bitcoin where the unassigned money is in the hands of the miners. I'd like to have a formal address argument in my contract which can be assigned at mining time with the actual address of the miner. I've never seen anything along these lines but I wonder if it is possible today or will be anytime soon.

  • but for the mainer is more reasonable to give preference to people who use higher gas price instead of dealing with new payment mechanisms, no? – Jaime Oct 31 '18 at 10:39
  • 1
    The address of the miner can be referenced from solidiy using block.coinbase. – Ismael Nov 2 '18 at 18:54
  • I imagine miner rewards could be accounted for in a blend of airdrop and withdrawal pattern styles. As flygoing suggested, it would probably have little effect on minor behavior until an ERC rises up through the ranks and miners realize they have unclaimed tokens and opportunities to earn more. – Rob Hitchens - B9lab Mar 29 at 22:51
1

For this to work clients would have to update to account for your specific token and the rewards around it. If anything it might be good for a standard to be implemented around this where miners could query a contract to see the reward for including transactions to it. There's no problem with it being possible, since you can access the block.coinbase to get the miner's address, but it's kind of useless without adoption in clients.

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.