Correct syntax for Bitcoin URI: bitcoin://1xxx-etc or bitcoin:1xxx-etc?

4

To make clickable Bitcoin links, to let people easily pay from their wallet, I see two formats being used in various situations:

bitcoin:14bTZTm1uX2uVAqHr62oyGFEkwy2mNLbVb?amount=0.25
and
bitcoin://14bTZTm1uX2uVAqHr62oyGFEkwy2mNLbVb?amount=0.25

So that's with and without the two slashes. When testing on Android, they both seem to work. Which is correct?

RocketNuts

Posted 2014-11-19T12:21:23.567

Reputation: 714

Answers

7

The correct format is bitcoin:<address> as defined in BIP21 and extended in BIP72.

The format with the slashes is mimicry of the HTTP URL format. Tim Berners-Lee has apologized for inflicting those extra slashes on the world. :-)

David A. Harding

Posted 2014-11-19T12:21:23.567

Reputation: 10 154