checkrune rune [nodeid] [method] [params]
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.
On success, an object is returned, containing:
- valid (boolean): true if the rune is valid
The following error codes may occur:
- RUNE_NOT_AUTHORIZED (1501): rune is not for this node (or perhaps completely invalid)
- RUNE_NOT_PERMITTED (1502): rune does not allow this usage (includes a detailed reason why)
- RUNE_BLACKLISTED (1503): rune has been explicitly blacklisted.
Shahana Farooqui <[email protected]> is mainly responsible
for consolidating logic from commando.