2019-08-31 14:30:56 +02:00
|
|
|
lightning-decodepay -- Command for decoding a bolt11 string (low-level)
|
|
|
|
=======================================================================
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
SYNOPSIS
|
|
|
|
--------
|
|
|
|
|
2022-01-26 18:18:49 +01:00
|
|
|
**decodepay** *bolt11* [*description*]
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
DESCRIPTION
|
|
|
|
-----------
|
|
|
|
|
|
|
|
The **decodepay** RPC command checks and parses a *bolt11* string as
|
|
|
|
specified by the BOLT 11 specification.
|
|
|
|
|
|
|
|
RETURN VALUE
|
|
|
|
------------
|
|
|
|
|
2021-05-26 07:54:01 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-START)
|
|
|
|
On success, an object is returned, containing:
|
2022-09-05 23:33:09 +02:00
|
|
|
|
2021-05-26 07:54:01 +02:00
|
|
|
- **currency** (string): the BIP173 name for the currency
|
2022-09-05 23:45:06 +02:00
|
|
|
- **created\_at** (u64): the UNIX-style timestamp of the invoice
|
2021-05-26 07:54:01 +02:00
|
|
|
- **expiry** (u64): the number of seconds this is valid after *timestamp*
|
|
|
|
- **payee** (pubkey): the public key of the recipient
|
2023-01-30 07:24:17 +01:00
|
|
|
- **payment\_hash** (hash): the hash of the *payment\_preimage*
|
2021-05-26 07:54:01 +02:00
|
|
|
- **signature** (signature): signature of the *payee* on this invoice
|
2022-09-05 23:45:06 +02:00
|
|
|
- **min\_final\_cltv\_expiry** (u32): the minimum CLTV delay for the final node
|
|
|
|
- **amount\_msat** (msat, optional): Amount the invoice asked for
|
2021-05-26 07:54:01 +02:00
|
|
|
- **description** (string, optional): the description of the purpose of the purchase
|
2023-01-30 07:24:17 +01:00
|
|
|
- **description\_hash** (hash, optional): the hash of the description, in place of *description*
|
|
|
|
- **payment\_secret** (hash, optional): the secret to hand to the payee node
|
2021-05-26 07:54:01 +02:00
|
|
|
- **features** (hex, optional): the features bitmap for this invoice
|
2022-11-11 03:03:13 +01:00
|
|
|
- **payment\_metadata** (hex, optional): the payment\_metadata to put in the payment
|
2021-05-26 07:54:01 +02:00
|
|
|
- **fallbacks** (array of objects, optional): onchain addresses:
|
|
|
|
- **type** (string): the address type (if known) (one of "P2PKH", "P2SH", "P2WPKH", "P2WSH")
|
|
|
|
- **hex** (hex): Raw encoded address
|
|
|
|
- **addr** (string, optional): the address in appropriate format for *type*
|
|
|
|
- **routes** (array of arrays, optional): Route hints to the *payee*:
|
|
|
|
- hops in the route:
|
|
|
|
- **pubkey** (pubkey): the public key of the node
|
2022-09-08 03:08:00 +02:00
|
|
|
- **short\_channel\_id** (short\_channel\_id): a channel to the next peer
|
2022-09-05 23:45:06 +02:00
|
|
|
- **fee\_base\_msat** (msat): the base fee for payments
|
|
|
|
- **fee\_proportional\_millionths** (u32): the parts-per-million fee for payments
|
|
|
|
- **cltv\_expiry\_delta** (u32): the CLTV delta across this hop
|
2021-05-26 07:54:01 +02:00
|
|
|
- **extra** (array of objects, optional): Any extra fields we didn't know how to parse:
|
|
|
|
- **tag** (string): The bech32 letter which identifies this field (always 1 characters)
|
|
|
|
- **data** (string): The bech32 data for this field
|
2021-09-03 12:07:59 +02:00
|
|
|
|
2021-05-26 07:54:01 +02:00
|
|
|
[comment]: # (GENERATE-FROM-SCHEMA-END)
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
Technically, the *description* field is optional if a
|
|
|
|
*description\_hash* field is given, but in this case **decodepay** will
|
|
|
|
only succeed if the optional *description* field is passed and matches
|
|
|
|
the *description\_hash*. In practice, these are currently unused.
|
|
|
|
|
|
|
|
AUTHOR
|
|
|
|
------
|
|
|
|
|
|
|
|
Rusty Russell <<rusty@rustcorp.com.au>> is mainly responsible.
|
|
|
|
|
|
|
|
SEE ALSO
|
|
|
|
--------
|
|
|
|
|
|
|
|
lightning-pay(7), lightning-getroute(7), lightning-sendpay(7).
|
|
|
|
|
|
|
|
[BOLT
|
2022-09-29 05:49:03 +02:00
|
|
|
\#11](https://github.com/lightning/bolts/blob/master/11-payment-encoding.md).
|
2019-08-10 01:54:18 +02:00
|
|
|
|
|
|
|
RESOURCES
|
|
|
|
---------
|
|
|
|
|
|
|
|
Main web site: <https://github.com/ElementsProject/lightning>
|
2020-08-25 03:33:16 +02:00
|
|
|
|
2023-01-30 07:24:18 +01:00
|
|
|
[comment]: # ( SHA256STAMP:e20f638716d74697afbea9cb4dd5afa380505dda65dcd3bba1579d2ed79bdc6b)
|