0

I am developing an app using Web3.js where users send an amount of tokens to a new wallet. What I want is forward the tokens to another wallet but I am unable because the wallets where tokens are received don't have ETH to pay gas fee. Are there any way to forward the tokens without ETH, I was thinking to use an account just for paying fees. For example Wallet A send 30 tokens to Wallet B, this wallet sign the transaction and Wallet C which have ETH will send the signed transaction so another Wallet D could receive the tokens. Is it possible?

1 Answer 1

0
  • Since each Ethereum transaction requires computational resources to execute, each transaction requires a fee. Gas refers to the fee required to conduct a transaction on Ethereum successfully. See these links to know more about fees: 1, 2.

  • Gas fees are paid in Ethereum's native currency, ether (ETH).

  • If you are looking for a centralized architecture, you can start with these links: 1, 2, 3. If you are not going to use smart contracts' approach and want to go with the EOA one, just simply send the (estimated gas * gas price) to the sender's account, before proceeding the token transfer. These links might be useful on the gas subject: 1, 2.

Hope this helps.

21
  • Thank you for your answer. I think the best option would be create a "parent" wallet to generate multiple public deposit wallets as you mentioned before. Do you have more information about it?
    – sendfy
    Commented Jan 24, 2022 at 20:50
  • @sendfy, github repo: github.com/cipherzzz/erc20-megawallet Commented Jan 25, 2022 at 4:55
  • Are you aware of this fact that within this approach, you have to create a contract address for each user (here named ERC20Wallet)? It costs you at least $100 per user to deploy their smart contracts on the Ethereum network, depending on the gas price. However as I mentioned in my stack Q, there are a few workarounds to minimize the fee, but not zero. Commented Jan 25, 2022 at 5:00
  • But, the pros are: 1. auto-forwarding deposit Ether to the master account with zero fee (in the EOA model you have to pay 1 fee). 2. paying 1 transaction fee to (NOT_AUTO-)forward erc20s to the master account (in the EOA model you have to pay 2 fees). Commented Jan 25, 2022 at 5:04
  • In case you are not familiar with contract addresses: info.etherscan.com/what-is-an-ethereum-address/…. Commented Jan 25, 2022 at 5:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.