![]() |
![]()
| ![]() |
![]()
NAMElightning-preapprovekeysend -- Ask the HSM to preapprove a keysend payment (low-level) SYNOPSISpreapprovekeysend destination payment_hash amount_msat DESCRIPTIONCommand 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. 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.
RETURN VALUEOn success, an empty object is returned. AUTHORKen Sedgwick <ken@bonsai.com> is mainly responsible. SEE ALSOlightning-keysend(7) RESOURCESMain web site: https://github.com/ElementsProject/lightning EXAMPLESExample 1: Request: $ lightning-cli preapprovekeysend -k "destination"="nodeid020202020202020202020202020202020202020202020202020202020202" "payment_hash"="0000000000000000000000000000000000000000000000000000000000000000" "amount_msat"=1000 { Response: {} Example 2: Request: $ lightning-cli preapprovekeysend "nodeid050505050505050505050505050505050505050505050505050505050505" "0101010101010101010101010101010101010101010101010101010101010101" "2000" { Response: {}
|