0

I would love it if there was a way for me to pay the gas costs for a signed transaction I receive and then relay to a node. So I am the submitting the transaction, but its data contains a signed raw transaction (ethereumjs-tx) of a different user.

4
  • looking at ethereum.stackexchange.com/questions/1452/…, I suspect that tx.origin will be the one paying the gas :(
    – simonDos
    May 28, 2017 at 9:28
  • Why would you want to pay for another one's transaction anyway? But if you really want to do this, you can just send gasLimit * gasPrice to tx.origin.
    – jeff
    May 28, 2017 at 10:17
  • if i do this in the smart contract though, the tx.origin address would need some ether to call the fct in the first place, right? I was hoping to work around any distribution scheme
    – simonDos
    May 28, 2017 at 10:58
  • Exactly. This issue is already being discussed here: ethereum.stackexchange.com/questions/144/…
    – jeff
    May 28, 2017 at 11:40

0

Your Answer

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

Browse other questions tagged or ask your own question.