LIGHTNING-PREAPPROVEKEYSEND(7)
π
LIGHTNING-PREAPPROVEKEYSEND(7) β preapprovekeysend but make it group-chat π
okay bestie, this is the manual page for lightning-preapprovekeysend(7). It's the low-level preapprovekeysend command, and yes it is exactly as niche and iconic as it sounds. β¨
πΈ NAME πΈ
preapprovekeysend β Ask the HSM to preapprove a keysend payment (low-level). π
β¨ SYNOPSIS β¨
preapprovekeysend destination payment_hash amount_msat
π¦ DESCRIPTION π¦
Command added in v23.02. β
The preapprovekeysend RPC command submits the destination, payment_hash, and amount_msat parameters to the HSM to check that they are approved as a keysend payment.
Generally the preapprovekeysend request does not need to be made explicitly, it is automatically generated as part of a keysend request. No cap.
By default, the HSM will approve all preapprovekeysend requests. π«Ά
If a remote signer is being used it might decline an preapprovekeysend request because it would exceed velocity controls, is not covered by allowlist controls, was declined manually, or other reasons. π
If a remote signer declines a preapprovekeysend request a subsequent attempt to pay the keysend anyway will fail; the signer will refuse to sign the commitment. Like, actually fail. π¨
destination(pubkey): It is a 33 byte, hex-encoded, node ID of the node that the payment should go to. (added v23.02) π₯payment_hash(hex) (always 64 characters): It is the unique identifier of a payment. (added v23.02) πamount_msat(msat): The amount to send 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. (added v23.02) πΈ
π RETURN VALUE π
On success, an empty object is returned.
{}
That's it. Empty. Clean. Minimal. Main character energy. π
π AUTHOR π
Ken Sedgwick ken@bonsai.com is mainly responsible. π«‘
π§ SEE ALSO π§
lightning-keysend(7) β go look, bestie. π
β RESOURCES β
Main web site: https://github.com/ElementsProject/lightning
π EXAMPLES π
Example 1 π
Request:
$ lightning-cli preapprovekeysend -k "destination"="nodeid020202020202020202020202020202020202020202020202020202020202" "payment_hash"="0000000000000000000000000000000000000000000000000000000000000000" "amount_msat"=1000
{
"id": "example:preapprovekeysend#1",
"method": "preapprovekeysend",
"params": {
"destination": "nodeid020202020202020202020202020202020202020202020202020202020202",
"payment_hash": "0000000000000000000000000000000000000000000000000000000000000000",
"amount_msat": 1000
}
}
Response:
{}
Example 2 β¨
Request:
$ lightning-cli preapprovekeysend "nodeid050505050505050505050505050505050505050505050505050505050505" "0101010101010101010101010101010101010101010101010101010101010101" "2000"
{
"id": "example:preapprovekeysend#2",
"method": "preapprovekeysend",
"params": [
"nodeid050505050505050505050505050505050505050505050505050505050505",
"0101010101010101010101010101010101010101010101010101010101010101",
2000
]
}
Response:
{}
π sign-off: this is lightning-preapprovekeysend(7) from Core Lightning v26.06.9, exactly as the footer says. No fake date, just the version and the page name, bestie. π«Ά
π¦ 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