Communities

Kaspa Q&A
Kaspa Q&A
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Kaspa Q&A

Post History

50%
+0 −0
Kaspa Q&A What's the difference between transaction payload and OP_RETURN data?

In Bitcoin, OP_RETURN is essentially a hack for publishing data on-chain without bloating the UTXO set: OP_RETURN is a Bitcoin opcode that makes the script fail instantly. Therefore, an output wit...

posted 3d ago by someone235‭

Answer
#1: Initial revision by user avatar someone235‭ · 2025-09-30T08:50:28Z (3 days ago)
In Bitcoin, OP_RETURN is essentially a hack for publishing data on-chain without bloating the UTXO set:

`OP_RETURN` is a Bitcoin opcode that makes the script fail instantly. Therefore, an output with scriptPubKey of `OP_RETURN <SOME ARBITRARY DATA>` is provably unspendable and therefore Bitcoin Core v0.9 introduced a policy of excluding it from the UTXO set.

Kaspa chose to avoid such hacks, and instead dedicated a transaction field, called payload, for storing data. Since this field is not part of the output, it won't be stored in the UTXO set in the first place.