jb55's avatar
jb55 _@jb55.com 2 months ago
here is the equivalent op_return one liner bitcoin-cli getrawtransaction 6ae4de7542bebb0884b08db8265d7567b27673034da179980c632b8d592ffe9b true \ | jq -r '.vout[] | select(.scriptPubKey.type=="nulldata") | .scriptPubKey.asm' \ | sed 's/^OP_RETURN //' \ | xxd -r -p I don't think its much different.

Replies (2)

jb55's avatar
jb55 _@jb55.com 2 months ago
and even this one requires txindex, which most nodes don't enable. so you could argue the utxo one is simpler and more universal among nodes. this argument just doesn't work man.