24

What is the URL scheme that is used by Bitcoin to copy transaction information directly into the client? Which versions of Bitcoin clients support it?

Murch
  • 75,206
  • 34
  • 186
  • 622
ThePiachu
  • 43,091
  • 25
  • 139
  • 348

2 Answers2

31

The Bitcoin Improvement Proposal that defines the Bitcoin URI scheme is BIP21.

The simple syntax is:

bitcoin:<address>[?amount=<amount>][?label=<label>][?message=<message>]

On the desktop all of Armory, Electrum and MultiBit respond to Bitcoin URI clicks in a browser and I believe Bitcoin-QT V0.7 does as well.

On mobiles Android Bitcoin Wallet does. On the iPhone the blockchain.info app does.

魔大农
  • 3
  • 3
jim618
  • 3,325
  • 16
  • 16
  • 1
    Bitcoin-Qt v0.7 for Windows does. Not Mac or Linux yet. – Stephen Gornick Oct 11 '12 at 20:56
  • 4
    It's important to note that although it isn't specified in the simple syntax, '?' after the first are changed to '&' as in regular URLs. For example: bitcoin:<myaddress>?amount=1&message=mymsg – Kevin Cox Jan 13 '14 at 23:02
  • 7
    Not to nitpick, but the acronym "BIP" stands for Bitcoin Improvement Proposal instead of Bitcoin Improvement Process. – Priidu Neemre Mar 26 '15 at 15:19
  • Apparently the number of decimals in the BTC amount matters. My wallet was rejecting the uri until I reduced the decimals to eight. – KalenGi Feb 10 '16 at 08:57
2

I think you need something like this

<a rel="payment" href="bitcoin:bitcoin_address_is_here?amount=5.00?message=payment to site name"><h2>Pay in Bitcoin now</h2></a>