How do I generate a QR code for a Bitcoin address with amount?

I use GoogleApi to generate QR codes for bitcoin and altcoins

The syntax is a bit tricky since the "data" portion (chl=*), is itself urlencoded (use %26 instead of &):

https://chart.googleapis.com/chart?chs=225x225&chld=L|2&cht=qr&chl=bitcoin:1MoLoCh1srp6jjQgPmwSf5Be5PU98NJHgx?amount=.01%26label=Moloch.net%26message=Donation

You can make a QR code for other altcoins by changing the chl=bitcoin:1(...) to chl=litecoin:L(...), etc

I made a multi-coin QR code generator for my website with all the available options:

http://resources.moloch.net/qr-generator

The only thing Google is missing, is to verify the address is legitimate (and not a typo), which my api handles seperately


There are many ways you can generate a QR code!

IMO, the most trusted way to generate a QR code is through google!

You can simply make an tag with this link:

https://chart.googleapis.com/chart?chs=250x250&cht=qr&chl= 12kQMUkB9QJu9X5JP9H9M2qMUmrGtDakkV

Im not sure what you mean by "trust". You dont really need to worry about trust since these are just the public keys, and not the private keys.

I hope this helps! (My BTC address is in the QR code!)

Tags:

Bitcoin