{{bip}}
BIP: 20 Title: URI Scheme Author: Luke DashjrBIP 0020 is based off an earlier document by Nils Schneider. '''And has been replaced by BIP 0021''' ==Abstract== This BIP proposes a URI scheme for making Bitcoin payments. ==Motivation== The purpose of this URI scheme is to enable users to easily make payments by simply clicking links on webpages or scanning QR Codes. ==Specification== === General rules for handling (important!) === Bitcoin clients MUST NOT act on URIs without getting the user's authorization. They SHOULD require the user to manually approve each payment individually, though in some cases they MAY allow the user to automatically make this decision. === Operating system integration === Graphical bitcoin clients SHOULD register themselves as the handler for the "bitcoin:" URI scheme by default, if no other handler is already registered. If there is already a registered handler, they MAY prompt the user to change it once when they first run the client. === BNF grammar === (See also [[#Simpler syntax|a simpler representation of syntax]]) bitcoinurn = "bitcoin:" bitcoinaddress [ ";version=" bitcoinversion ] [ "?" bitcoinparams ] bitcoinaddress = base58 *base58 bitcoinversion = "1.0" bitcoinparams = *bitcoinparam bitcoinparam = amountparam | labelparam | messageparam | sendparam | otherparam amountparam = "amount=" amount amount = amountdecimal | amounthex amountdecimal = *digit [ "." *digit ] [ "X" *digit ] amounthex = "x" *hexdigit [ "." *hexdigit ] [ "X" *hexdigit ] labelparam = "label=" *pchar messageparam = "message=" *pchar sendparam = "send=" *pchar otherparam = pchar *pchar "=" *pchar === Query Keys === *label: Label for that address (e.g. name of receiver) *address: bitcoin address *message: message that shown to the user after scanning the QR code *size: amount of base bitcoin units ([[#Transfer amount/size|see below]]) *send: used to send bitcoin, rather than to request them *(others): optional, for future extensions ==== Transfer amount/size ==== If an amount is provided, it may be specified either in decimal or, when prefixed with a single "x" character, hexadecimal. The number SHOULD be followed by "X"Status: Replaced Type: Standards Track Created: 10-01-2011