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?

2 Answers 2

32

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.

4
  • 1
    Bitcoin-Qt v0.7 for Windows does. Not Mac or Linux yet. Commented Oct 11, 2012 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
    Commented Jan 13, 2014 at 23:02
  • 7
    Not to nitpick, but the acronym "BIP" stands for Bitcoin Improvement Proposal instead of Bitcoin Improvement Process. Commented Mar 26, 2015 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
    Commented Feb 10, 2016 at 8: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>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.