macaroons_execute
Pay for and execute a paid marketplace capability by ID via Lightning L402. It returns a payable invoice when no wallet is configured, and refunds on failed acceptance checks or bridge errors.
Instructions
Execute a paid marketplace capability by capability_id. Pays via Lightning L402 against a hold invoice — payment only settles if the acceptance predicate passes against the bridge response; bridge errors and predicate failures refund. If no wallet is configured (the default), returns payment_required with a real invoice for you to pay yourself.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | Capability input payload matching the listing input_schema. | |
| predicate | No | Optional acceptance predicate. Defaults to the listing's sample_predicate when omitted. | |
| capability_id | Yes | Registry capability_id, e.g. 'polymathica-heated-channel-v1'. | |
| max_spend_sats | No | Hard per-call spend cap in satoshis. | |
| resume_macaroon | No | Only set this after a prior call returned payment_required and you've since paid that invoice with your own wallet — set it to the macaroon that call returned. Omit on a first attempt. |