It is much easier to write Rune's when the RPC methods are consistent. I recommend changing all RPC method names to the prism-<action> format. This allows you to write runes like this: restrictions='[["method^prism-","rate=120"]]'
createprism (creates a single prism, returns a single prism_id) --> prism-create
listprisms (lists all prisms) --> prism-list
listprism (shows a single prism) -- prism-show <prism_id>
It is much easier to write Rune's when the RPC methods are consistent. I recommend changing all RPC method names to the
prism-<action>
format. This allows you to write runes like this:restrictions='[["method^prism-","rate=120"]]'
createprism
(creates a single prism, returns a singleprism_id
) -->prism-create
listprisms
(lists all prisms) -->prism-list
listprism
(shows a single prism) --prism-show <prism_id>
deleteprism
-->prism-delete <prism_id>
updateprism
-->prism-update <prism_id> members[]
Suggested NEW RPC Methods:
prism-execute <prism_id> <amount_msats> <label>
(invokes prism payment logic OUTSIDE of the regular payment flow).