Decode Invoice

Decode an invoice and get route hints. Uses LNPay.co node

get
DecodeInvoice

https://api.lnpay.co/v1/node/default/payments/decodeinvoice
Using an LND node
Request
Response
Request
Query Parameters
payment_request
optional
string
Payment request lnbc...
Response
200: OK
Decoded invoice
{
"destination":"02c16cca44562b590dd279c942200bdccfd4f990c3a69fad620c10ef2f8228eaff",
"payment_hash":"a202d6f9a67b0259be44fc18329a734167a1dcf9135e1b001cc8225d01be8f38",
"num_satoshis":"69",
"timestamp":"1581701421",
"expiry":"86400",
"description":"Demo Memo",
"cltv_expiry":"144",
"route_hints":[
{
"hop_hints":[
{
"node_id":"03a503d8e30f2ff407096d235b5db63b4fcf3f89a653acb6f43d3fc492a7674019",
"chan_id":"676900040102838273",
"fee_proportional_millionths":98,
"cltv_expiry_delta":29
}
]
}
],
"payment_addr":"yUu1+Yzh7/YvOyKTQrc822SRCRw1n62BfT+eKsZx73w=",
"num_msat":"69000",
"features":{
"9":{
"name":"tlv-onion",
"is_known":true
},
"15":{
"name":"payment-addr",
"is_known":true
},
"17":{
"name":"multi-path-payments",
"is_known":true
}
}
}
curl
curl
curl -u sak_XXXX: \
https://api.lnpay.co/v1/node/default/payments/decodeinvoice?payment_request=lnbc690n1p0ydkfdpp55gpdd7dx0vp9n0jylsvpp0lj....