<p>Yes, the <code>payment_request</code> is a BOLT11 invoice, which uses Bech32 encoding.</p>

CC BY-SA 4.0
2023-11-20T12:07:49.177Z
2023-11-20T12:07:49.177Z
Pieter Wuille
<p>I am using the LND Rest API to create an invoice. As response I get something like</p>
<pre><code>{'r_hash': 'Wchr...E=', 
 'payment_request': 'lnbc210n1p....z9s', 
 'add_index': '4', 
 'payment_addr': 'Lyn...50='
}
</code></pre>
<p>According to LUD06 <a href="https://github.com/lnurl/luds/blob/luds/06.md" rel="nofollow noreferrer">https://github.com/lnurl/luds/blob/luds/06.md</a> I have to create a &quot;bech32-serialized lightning invoice&quot; from this.</p>
<p>Is the <code>payment_request</code> already bech32? Cause I can paste it in WoS and pay (think it's bolt11). Or how can I achieve that in python?</p>

<lightning-network><lightning-network-daemon><invoices><bolt11>
bech32 serialized lightning invoice from lnd rest endpoint /v1/invoices
Rainer Feike
# bech32 serialized lightning invoice from lnd rest endpoint /v1/invoices

(Asked by: username_0 on 2023-11-20)

I am using the LND Rest API to create an invoice. As response I get something like

```
{'r_hash': 'Wchr...E=', 
 'payment_request': 'lnbc210n1p....z9s', 
 'add_index': '4', 
 'payment_addr': 'Lyn...50='
}

```

According to LUD06 <https://github.com/lnurl/luds/blob/luds/06.md> I have to create a "bech32-serialized lightning invoice" from this.

Is the `payment_request` already bech32? Cause I can paste it in WoS and pay (think it's bolt11). Or how can I achieve that in python?

**Tags:** lightning-network, lightning-network-daemon, invoices, bolt11


---

## 1 answers

### Answer by username_1 on 2023-11-20. Score: 2 | Accepted answer

Yes, the `payment_request` is a BOLT11 invoice, which uses Bech32 encoding.


---

