Decode Invoice

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

get
DecodeInvoice

https://lnpay.co/v1/node/default/payments/decodeinvoice
Using an LND node
Request
Response
Request
Query Parameters
payment_request
optional
string
The API will do its best to find a cake matching the provided recipe.
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 pak_O0iUMxk8kK_qUzkT4YKFvp1ZsUtp: \
https://lnpay.co/v1/node/default/payments/decodeinvoice?payment_request=lnbc690n1p0ydkfdpp55gpdd7dx0vp9n0jylsvr9xnng9n6rh8ezd0pkqqueq396qd73uuqdq0g3jk6meqf4jk6mcxqyz5vqcqzyssp5e99mt7vvu8hlvtemy2f59deumdjfzzguxk06mqta870z43n3aa7qrzjqwjs8k8rpuhlgpcfd534khdk8d8u70uf5ef6edh585lufy48vaqpjzty65qqd3cqqyqqqqqqqqqqqcsqr59qy9qsqf5z5n29j64zdvyyp603k7y8w2tsvlv02jlh4tg6qan2mdxgd8xc4hc2sggkwpnekg0tnjstj2q3r7nhwqtdp4hua9vdnsgp8r8j25jspp0l69j