I am wondering if I can inject multiple OP_RETURN outputs in one transaction?

1 Answer 1


Can inject multiple OP_RETURN outputs in one transaction?

At the protocol level, absolutely nothing prevents you from doing this. However, such a transaction would not be considered a 'standard' transaction and would not be relayed (propagated) through the network.

Let's say, though, you were a miner yourself. Then you could mine a transaction with 100 OP_RETURN outputs in it, and no one would reject your block because of it.

  • 1
    I'm confused, because I found a transaction with three OP_RETURN outputs in it: blockchain.com/btc/tx/… So it is possible now ? Aug 2, 2021 at 17:33
  • @csstudent1418 I misread the answer too. So multiple OP_RETURNs are only denied in propagating txs, not blocks. So, only a miner can do multiple OP_RETURNs as their transaction doesn't need to be propagated. The tx you point out is a coinbase tx, and thus comes from the miner. Nov 8, 2021 at 14:36

Your Answer

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

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