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
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.
-
1Bitcoin-Qt v0.7 for Windows does. Not Mac or Linux yet. Commented Oct 11, 2012 at 20:56
-
4It'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
Commented Jan 13, 2014 at 23:02 -
7Not 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.– KalenGiCommented Feb 10, 2016 at 8:57
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>