Bitcoin BIP321 Payment Instructions: Unified Bitcoin URIs and Compatibility
BIP321 describes a broader payment-instruction URI approach intended to support different Bitcoin payment methods through a unified entry point. It is useful to understand alongside BIP21, but its existence does not mean every wallet accepts every BIP321-style request.
Why another payment URI design?
BIP21 was designed around a Bitcoin address and optional parameters. Modern payment experiences may involve on-chain destinations, Lightning payment information, or multiple alternatives. A unified instruction format aims to let the recipient present options while allowing a compatible payer wallet to choose an understood method.
This is a coordination and interoperability problem, not a change to Bitcoin consensus. The on-chain network still validates ordinary transactions under its existing rules, and a Lightning payment still follows the relevant Lightning protocol.
How a wallet should interpret instructions
A robust parser first checks URI syntax and parameter encoding, then determines which payment methods it actually supports. It must distinguish optional alternatives from mandatory constraints and must never silently reinterpret an unknown field as authorization to pay a different recipient. For an on-chain method, it should validate the destination, network, and amount; for other methods, it must use their respective validators.
A user interface should make the selected payment method explicit. Two methods offered in one request are alternatives unless the protocol explicitly specifies otherwise: the wallet must not pay both simply because both appear. Applications must also prevent accidental duplicate payment when switching methods after an uncertain result.
Status and compatibility considerations
BIP documents are specifications or proposals; a BIP number is not evidence of universal deployment. Before issuing BIP321-based requests in production, test the precise wallet versions and payment methods your audience uses. Provide a conventional BIP21 on-chain option where practical. Do not claim an advanced URI will work with every QR scanner or wallet.
Threat model
A URI can be modified by a compromised website, clipboard replacement, or an altered QR image. Multiple payment methods also introduce downgrade and ambiguity risks: an attacker might remove a preferred option or replace a destination. Authentication of an invoice or merchant must be established separately from URI parsing.
Primary references
BIP321 — URI Scheme for Bitcoin Payment Instructions: https://github.com/bitcoin/bips/blob/master/bip-0321.mediawiki
BIP21 — URI Scheme: https://github.com/bitcoin/bips/blob/master/bip-0021.mediawiki
