1

Can someone sign a transaction, maybe for sending funds or for smart contract interaction, and have someone else broadcast it and pay the transaction fees?

Or is it that the signer of the transaction also has to pay for that transaction?

1
  • Someone else broadcast it yes. Paying the fees no, at least not for simple native transactions, take a look at meta transactions
    – Majd TL
    Sep 19 at 7:29
4

Theoretically anyone can broadcast signed transactions, yes.

The signed transaction contains the gas price (and gas limit) that the sender is willing to pay to for getting the transaction included in a block. Usually transactions with a gas price of 0 or below a certain threshold would get ignored by miners.

However, there are exceptions like Flashbots Auction, where bundles of transactions can be submitted to miners. If one of the transactions in the bundle yields enough reward for miners, they'd also include other transactions of that bundle, even if they have a gas price of 0.

2
  • Thanks. What I was really asking is: Can the person broadcasting the signed transaction pay for the gas? If no why not?
    – YulePale
    Sep 19 at 9:31
  • 1
    It's by design that the sender of a transaction has to pay the gas fee. I don't know if I can explain it any better, but broadcasting a signed transaction happens on a different level than paying blockchain fees. If you're looking for a workaround you might be interested in the Gas Station Network: docs.opengsn.org/#the-problem
    – pwagner
    Sep 19 at 11:13

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.