![]() |
![]()
| ![]() |
![]()
NAMElightning-checkrune -- Command to Validate Rune SYNOPSIScheckrune rune [nodeid] [method] [params] DESCRIPTIONCommand added in v23.08. The checkrune RPC command checks the validity/authorization rights of specified rune for the given nodeid, method, and params. If successful, the rune "usage" counter (used for ratelimiting) is incremented. See lightning-createrune(7) for the fields in the rune which are checked.
RETURN VALUEOn success, an object is returned, containing:
ERRORSThe following error codes may occur:
AUTHORShahana Farooqui <sfarooqui@blockstream.com> is mainly responsible for consolidating logic from commando. SEE ALSOlightning-createrune(7), lightning-blacklistrune(7) RESOURCESMain web site: https://github.com/ElementsProject/lightning EXAMPLESExample 1: Request: $ lightning-cli checkrune -k "nodeid"="nodeid020202020202020202020202020202020202020202020202020202020202" "rune"="_RWaZZRI7wAYU2hqlFBmYgC_dFczcpAdI_9O87YbDpg9MCZtZXRob2RebGlzdHxtZXRob2ReZ2V0fG1ldGhvZD1zdW1tYXJ5Jm1ldGhvZC9saXN0ZGF0YXN0b3Jl" "method"="listpeers" "params"='{}' { Response: { Example 2: Request: $ lightning-cli checkrune -k "nodeid"="nodeid020202020202020202020202020202020202020202020202020202020202" "rune"="QUJEYMLGgiaJvMDv_MhR2hiMKIBTbq-PrL-KxcIlirQ9MiZtZXRob2Q9cGF5JnBuYW1lYW1vdW50bXNhdDwxMDAwMA==" "method"="pay" "params"='{"amount_msat": 9999}' { Response: {
|