[Ethereum] the best way for the Dapp users to not pay gas fees

dappsethergas

I'm building a React/NodeJS Dapp for people who just have an email address and nothing more (no Ethereum address (and so no gas), no MetaMask, no Eth Wallets, etc..)

An address is created during the registration step, but gas is needed for that x)

I'm thinking about those two options:

  • The user could set the gasPrice to 0.
    Although this transaction would most likely not be picked up by the miners, the Dapp provider could mine all transaction going to his address.

  • Stringify and store transactions data got with web3 getData() method and run them later with the Admin Eth Wallet address.

I can't see other ways.

If you guys have ideas, please share.

Best Answer

The user could set the gasPrice to 0. Although this transaction would most likely not be picked up by the miners, the Dapp provider could mine all transaction going to his address.

This is an interesting question.
While we are still in PoW, the scenario you've described sounds possible.
I've made some calculations:

  • It will take you an average of 800 days to find 1 Block if you are mining on a rig with one GTX 1080 Ti at 30MH/s .

Information given above is only for example. It can vary.


the Dapp provider could mine all transaction going to his address

It seems like you should estimate the load on your service and make some math. In conclusion you should decide if it is worthy to have such provider, working for 0$ profit or just to pay all these tx fees by yourself.

Related Topic