Been stuck for days on this. I wanna create a QR code that Bitcoin wallets will easily recognize and link to a transaction with an on-chain message. Currently, I'm using OP_RETURN, but none of the QR codes I generate work with apps like Blockstream Green. I tried BIP21 too, but it seems like that doesn't actually post data on-chain, which is a must for me.
Embedding on-chain messages in QR codes
3 replies 350 views
Yeah, that’s tough. Many wallets don’t even support OP_RETURN. If you’re looking for something that fits, BIP 321 is probably the closest option. It has a message key, but I think that just shows a message on-screen, not on-chain. You might wanna check out otherparam instead for your needs. It could help get more wallet support.
Just thinking about it... to make this work, the recipient would need to handle some of the fees and OP_RETURN output. And merging both PSBT and URI in a QR code isn't a common standard. So technically, it's not straightforward. But if someone figures it out, that’d be cool.
Honestly, from what I see, there’s no wallet-agnostic solution for this yet. If there was a standard for QR codes with on-chain data, I bet it’d be exploited already. BIP21 doesn’t lock in data and using PSBT complicates things. If you want broad wallet support, you’re kinda stuck with the few features that wallets choose to share.
Related topics
- New Bitcoin Improvement Proposal with $100 Reward 9
- Clipboard Vulnerabilities in Cryptocurrency Transactions 8
- Understanding the Differences Between Traditional and Simplified Chinese Mnemonics 6
- Understanding Fees with Taproot Script Usage 3
- Can You Prune Bitcoin Core Data by Date Range? 4
- Best Hardware Specs for Running Bitcoin Core 7