Inspect a BOLT11 invoice
Read-only local inspection of a BOLT11 invoice, up to 16384 characters including an optional single lightning: prefix. Accepts lowercase or uppercase invoices; mixed case is rejected. Requires a server API key or a client key with orders:quote; account approval and client origin rules apply. Does not verify the signature, establish payability, fetch LNURL targets, create orders or make payments. LNURL, Lightning Address and BOLT12 inputs return actionable 400 errors. Expired and non-mainnet invoices can be inspected. Timestamps are Unix seconds. Responses use Cache-Control: private, no-store. No X-Idempotency-Key is required or persisted.
POST
/
v1
/
lightning
/
decode
Inspect a BOLT11 invoice
curl --request POST \
--url https://orchestration.flashnet.xyz/v1/lightning/decode \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"invoice": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({invoice: '<string>'})
};
fetch('https://orchestration.flashnet.xyz/v1/lightning/decode', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://orchestration.flashnet.xyz/v1/lightning/decode"
payload = { "invoice": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"network": "mainnet",
"amountMsats": "<string>",
"amountSats": "<string>",
"paymentHash": "<string>",
"timestamp": 1,
"expiry": 1,
"expiresAt": 1,
"expired": true,
"description": "<string>",
"descriptionHash": "<string>",
"signatureVerified": false
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}Authorizations
Response
Decoded details; signatureVerified is always false
Was this page helpful?
⌘I
Inspect a BOLT11 invoice
curl --request POST \
--url https://orchestration.flashnet.xyz/v1/lightning/decode \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"invoice": "<string>"
}
'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({invoice: '<string>'})
};
fetch('https://orchestration.flashnet.xyz/v1/lightning/decode', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://orchestration.flashnet.xyz/v1/lightning/decode"
payload = { "invoice": "<string>" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"network": "mainnet",
"amountMsats": "<string>",
"amountSats": "<string>",
"paymentHash": "<string>",
"timestamp": 1,
"expiry": 1,
"expiresAt": 1,
"expired": true,
"description": "<string>",
"descriptionHash": "<string>",
"signatureVerified": false
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>"
}
}