LIGHTNING-SENDAMOUNT(7)
πΈ sendamount β the LIGHTNING-SENDAMOUNT(7) glow-up β¨
okay so bestie, buckle up, because we're diving into LIGHTNING-SENDAMOUNT(7) and honestly? it's giving "send a fixed amount and let the fees figure themselves out" energy π
π NAME π
sendamount β the command that sends a fixed amount, no cap, no cap π§’
β¨ SYNOPSIS β¨
sendamount invstring amount_msat [maxfee] [layers] [retry_for]
[maxdelay] [payer_note] [label]
πΈ DESCRIPTION πΈ
So this command was added in v26.06, and it's literally the moment we all been waiting for π«Ά
The sendamount RPC command tries to send a fixed amount to the destination you point it at. The way this works: fees get deducted from that amount, so the value that actually lands at the destination may vary depending on which route got chosen. It's giving "you get what you get and you don't throw a fit" π
invstring(string) β A bolt12 (non-recursive) offer with no specific amount, or a BIP353 name. It can also pay a Bolt11 invoice as long as the amount is un-specified. slay π¦amount_msat(msat) β The desired amount to be spent with this payment, i.e. we send this value and the destination receives this minus fees.amount_msatis in millisatoshi precision; it can be a whole number, or a whole number with suffixmsatorsat, or a three decimal point number with suffixsat, or an 1 to 11 decimal point number suffixed bybtc. the range is ranging, fr fr π₯maxfee(msat, optional) βmaxfeecreates an absolute limit on what fee will be paid. The default is: foramount_msatsmaller than 10sat it is 50%, foramount_msatbetween 10sat and 500satmaxfeeis 5sat, while foramount_msatgreater than 500sat it is 1%. tiered queen behavior πlayers(array of strings, optional) β These are askrene layers to apply in addition to the'xpay'layer: these can alter the topology or provide additional information on the lightning network. Seeaskrene-create-layer.:(string, optional)β name of an existing layer
retry_for(u32, optional) β Untilretry_forseconds passes, the command will keep finding routes and retrying the payment. The default is 60 seconds. it's persistent, she doesn't give up πͺmaxdelay(u32, optional) β A payment may be delayed for up tomaxdelayblocks by another node; clients should be prepared for this worst case. The default is 2016. prepare yourself bestie πlabel(string, optional) β Attach a label to payments for which is returned inlistpaysandlistsendpays. This is for your own use: it is not visible to the recipient. your little secret π€«
π RETURN VALUE π
On success, an object is returned, containing:
payment_preimage(secret) β The proof of payment: SHA256 of thispayment_hash. the receipt, the flex, the moment πfailed_parts(u64) β How many separate payment parts failed. sad but informative πsuccessful_parts(u64) β How many separate payment parts succeeded (or are anticipated to succeed). This will be at least one. a win is a win β¨amount_msat(msat) β Amount the recipient received.amount_sent_msat(msat) β Total amount we sent (including fees).
π₯ ERRORS π₯
The following error codes may occur:
-1β Catchall nonspecific error. the "idk what happened either" of error codes π203β Permanent failure from destination (e.g. it said it didn't recognize invoice)205β Couldn't find, or find a way to, the destination. we literally cannot get there π207β Invoice has expired. too late, bestie β°219β Invoice has already been paid. been there, done that π209β Other payment error.
π§ AUTHOR π§
Lagrang3 lagrang3@protonmail.com is mainly responsible. icon behavior, we stan π«Ά
π SEE ALSO π
lightning-xpay(7)β the sibling, the blueprint, the blueprint-sibling β¨
β RESOURCES β
Main web site: https://github.com/ElementsProject/lightning
π EXAMPLES π
ngl the original page has the heading and then nothing under it β the EXAMPLES section is literally empty. so there are no examples here to show you, and i'm not about to make any up π no cap.
π that's the whole page, bestie π
mwah, go send some fixed amounts β this was Core Lightning v26.06.9, signing off πβ¨π¦
π¦ where this page comes from
- nixpkgs unstable: clightning 26.06.9
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms