<p>Bitpay uses the <a href="https://github.com/bitcoin/bips/blob/master/bip-0070.mediawiki" rel="nofollow noreferrer">BIP 70 Payment Protocol</a>. This protocol does not use addresses, which is why they are able to now show an address. Rather, the Bitcoin URI that you are given (either you scanned it with a QR code reader or you entered it into your wallet) points to a place where your wallet can download a PaymentRequest. The Bitcoin URI format for pointing to the PaymentRequest download location is specified by <a href="https://github.com/bitcoin/bips/blob/master/bip-0072.mediawiki" rel="nofollow noreferrer">BIP 72</a>.</p>

<p>The PaymentRequest that is downloaded contains a list of outputs (amounts and scriptPubKeys) that Bitpay wants you to have in your transaction. These outputs do not contain addresses; instead they have directly the scriptPubKey that should be in the output. This allows for forward compatibility with other new script or address types that did not exist at the time of BIP 70's writing.</p>

<blockquote>
  <p>but I'd like to extract the Bitcoin address from the bitpay invoice manually myself.</p>
</blockquote>

<p>You can download the PaymentRequest as a file from the URL specified by the PaymentRequest. That PaymentRequest encoded using <a href="https://developers.google.com/protocol-buffers/" rel="nofollow noreferrer">Google's Protocol Buffers</a> with the fields specified in BIP 70. So using a Protobuf decoder, you can get each specific field of the PaymentRequest, and from there, each field of each output, and then convert the output scripts to addresses if those scripts even have addresses. I have a <a href="https://github.com/achow101/payment-proto-interface" rel="nofollow noreferrer">slightly outdated project</a> that runs locally to do all of this for you.</p>

CC BY-SA 4.0
2018-12-25T04:03:06.657Z
2018-12-25T04:03:06.657Z
Ava Chow
<p>Bitpay invoices are not compatible with most Bitcoin wallets out right now. I wanted to pay a bitpay invoice, but my wallet doesn't support it. </p>

<ul>
<li>How does Bitpay hide the bitcoin address on their invoice pages? I don't even see it in the source. </li>
<li>I know there is Debitpay ( <a href="https://alexk111.github.io/DeBitpay/" rel="nofollow noreferrer">https://alexk111.github.io/DeBitpay/</a> ) static app to decode these invoices, but I'd like to extract the Bitcoin address from the bitpay invoice manually myself. How can this be done? </li>
</ul>

CC BY-SA 4.0
2019-06-15T18:15:00.580Z
i found the link similar to the link you put
this just easier: https://www.antibitpay.com
asu
<bitpay>
How do Bitpay invoices hide the Bitcoin address to pay to? I want to pay with another wallet.
Patoshi パトシ
# How do Bitpay invoices hide the Bitcoin address to pay to? I want to pay with another wallet.

(Asked by: username_0 on 2018-12-24)

Bitpay invoices are not compatible with most Bitcoin wallets out right now. I wanted to pay a bitpay invoice, but my wallet doesn't support it.

* How does Bitpay hide the bitcoin address on their invoice pages? I don't even see it in the source.
* I know there is Debitpay ( <https://alexk111.github.io/DeBitpay/> ) static app to decode these invoices, but I'd like to extract the Bitcoin address from the bitpay invoice manually myself. How can this be done?

**Tags:** bitpay

> **Comments:**
> **username_1**: i found the link similar to the link you put this just easier: https://www.antibitpay.com  

---

## 1 answers

### Answer by username_2 on 2018-12-25. Score: 2

Bitpay uses the [BIP 70 Payment Protocol](https://github.com/bitcoin/bips/blob/master/bip-0070.mediawiki). This protocol does not use addresses, which is why they are able to now show an address. Rather, the Bitcoin URI that you are given (either you scanned it with a QR code reader or you entered it into your wallet) points to a place where your wallet can download a PaymentRequest. The Bitcoin URI format for pointing to the PaymentRequest download location is specified by [BIP 72](https://github.com/bitcoin/bips/blob/master/bip-0072.mediawiki).

The PaymentRequest that is downloaded contains a list of outputs (amounts and scriptPubKeys) that Bitpay wants you to have in your transaction. These outputs do not contain addresses; instead they have directly the scriptPubKey that should be in the output. This allows for forward compatibility with other new script or address types that did not exist at the time of BIP 70's writing.

> but I'd like to extract the Bitcoin address from the bitpay invoice manually myself.

You can download the PaymentRequest as a file from the URL specified by the PaymentRequest. That PaymentRequest encoded using [Google's Protocol Buffers](https://developers.google.com/protocol-buffers/) with the fields specified in BIP 70. So using a Protobuf decoder, you can get each specific field of the PaymentRequest, and from there, each field of each output, and then convert the output scripts to addresses if those scripts even have addresses. I have a [slightly outdated project](https://github.com/achow101/payment-proto-interface) that runs locally to do all of this for you.


---

