Beesknees Pay Out
beesknees_pay_outOperator: send a settled match's charity or winner share over Lightning.
restricted, so the runtime requires the caller to be the operator, proven.
This is the only tool here that moves real sats, and the only one whose
effect cannot be undone by writing another row.
The amount is READ from the settlement, never recomputed, so a payment can never be for a figure the ledger does not already carry. The charity leg pays the beneficiary the match itself recorded, so a match settled under a previous charity still pays the charity it promised.
Before anything moves the wallet is asked whether it can cover the payment plus its routing fee, and the payment is claimed in the database before the sats leave — so a retry, a double press, or two operators at once collide on a primary key rather than at the node. Calling it again after a success reports the existing payment rather than making a second.
Nothing here is automatic. A payment leaves because somebody asked.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | 'charity' or 'winner'. | charity |
| npub | No | Required. Your Nostr public key (npub1...) for credit billing. | |
| match_id | Yes | The settled match to pay out. | |
| dpop_token | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||