Bitcoin Forum
January 20, 2026, 12:42:38 PM *
News: Latest Bitcoin Core release: 30.2 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: QR encoded transactions that embed a payload and post it onchain?  (Read 20 times)
MadCake (OP)
Newbie
*
Offline Offline

Activity: 1
Merit: 0


View Profile
January 19, 2026, 08:47:39 PM
 #1

I have been banging my head for a couple of days here.

I want to be able to generate a QR code that is recognised widely by bitcoin wallets, representing a transfer with an embedded onchain message.

At the moment I am using OP_RETURN for this. My code looks good but I am hitting a wall, because no QR code I generate is recognized by wallets like Blockstream Green. I have tried using BIP21 with a message field but if I understood correctly, that does not post the data onchain, and it is a hard requirement that the data is posted onchain - this worked with Green, but I have not tried with others.

Then I have been trying PSBT, but apparently I need the user to provide me with their sender address prior to this to build in this format, which is also a no-go, introduces too much friction in the UI.

What other options do I have? I need something that is widely adopted by wallets in the ecosystem.
ABCbits
Legendary
*
Offline Offline

Activity: 3486
Merit: 9595



View Profile
Today at 09:40:03 AM
 #2

What other options do I have? I need something that is widely adopted by wallets in the ecosystem.

Probably none, partly because many wallet don't have feature to create OP_RETURN output.

But FWIW, BIP 321 is probably closest thing you're looking for. It has message key[1], but it's very likely it refer to message shown on user device. So what you could use is otherparam, that could be used for your purpose and suggest other wallet to support your key/otherparam.

[1] https://github.com/bitcoin/bips/blob/master/bip-0321.mediawiki#query-keys
[2] https://github.com/bitcoin/bips/blob/master/bip-0321.mediawiki#abnf-grammar

███████████████████████████
███████▄████████████▄██████
████████▄████████▄████████
███▀█████▀▄███▄▀█████▀███
█████▀█▀▄██▀▀▀██▄▀█▀█████
███████▄███████████▄███████
███████████████████████████
███████▀███████████▀███████
████▄██▄▀██▄▄▄██▀▄██▄████
████▄████▄▀███▀▄████▄████
██▄███▀▀█▀██████▀█▀███▄███
██▀█▀████████████████▀█▀███
███████████████████████████
.
.Duelbits PREDICT..
█████████████████████████
█████████████████████████
███████████▀▀░░░░▀▀██████
██████████░░▄████▄░░████
█████████░░████████░░████
█████████░░████████░░████
█████████▄▀██████▀▄████
████████▀▀░░░▀▀▀▀░░▄█████
██████▀░░░░██▄▄▄▄████████
████▀░░░░▄███████████████
█████▄▄█████████████████
█████████████████████████
█████████████████████████
.
.WHERE EVERYTHING IS A MARKET..
█████
██
██







██
██
██████
Will Bitcoin hit $200,000
before January 1st 2027?

    No @1.15         Yes @6.00    
█████
██
██







██
██
██████

  CHECK MORE > 
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!