OP_RETURN_DATA missing in outputs section #295
-
Summarygm! Managed to sign and broadcast a BTC Tx with OP_RETURN_DATA: https://live.blockcypher.com/btc/tx/d0f6d74c8ad3c5fda41d1e6fe0b5d2256524b247b4558a643786df910cf7bf2e/ While OP_RETURN_DATA is indeed present as an output, Phantom fails to parse it and only parses the two other outputs in this Tx (i.e change/spend outputs in this screenshot respectively): The OP_RETURN_DATA output itself is build in a pretty standard way with bitcoinjs-lib: const data = Buffer.from(msg.opReturnData, "utf-8");
const embed = bitcoin.payments.embed({ data: [data] });
psbt.addOutput({
script: embed.output!,
value: 0,
}); Not sure if this is so much of a bug rather than an unimplemented feature, but I believe it would be nice to see OP_RETURN_DATA outputs in the expanded section 🙏🏽 ExampleNo response Steps to Reproduce
Phantom VersionNo response Is there an existing discussion for this?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
@gomesalexandre what would be your use case for the output? |
Beta Was this translation helpful? Give feedback.
Either sends with a memo of sorts or dApps (e.g THORChain) leveraging BTC memos, would be a nice feature to see it!
On top of seeing the outputs (minus the
OP_RETURN_DATA
one), which is already quite an unusual and killer feature for BTC UX 💯