arrow_back
Back

Accepting Bitcoin payments: BIP21 URIs and payment QR codes

Andrew Dorokhov Andrew Dorokhov schedule 1 min read

A payment QR code encodes a URI as defined in open_in_new BIP 21 :

bitcoin:1GdK9UzpHBzqzX2A9JFP3Di4weBwqgmoQA?
amount=0.015&
label=Bob%27s%20Cafe&
message=Purchase%20at%20Bob%27s%20Cafe

Components:

Part Example
Bitcoin address 1GdK9UzpHBzqzX2A9JFP3Di4weBwqgmoQA
Amount 0.015
Label Bob's Cafe
Message Purchase at Bob's Cafe

Unlike a QR that only contains an address, this payment URI includes amount and description so the wallet can prefill a clear payment screen for the user.

code

Need Help with Development?

Happy to help — reach out via the contacts or go straight to my Upwork profile.

work View Upwork Profile arrow_forward
Next Article

Bitcoin confirmations: unconfirmed txs, blocks, and low-value payments

arrow_forward