wdk_mpp_pay
Pay a Machine Payments Protocol Lightning challenge by providing the invoice from mpp_request_challenge. Returns a credential JSON for submission and a payment hash for auditing, with optional L402-compatible fields.
Instructions
Pay an MPP (Machine Payments Protocol) Lightning challenge using the RLN wallet. Pass the invoice from mpp_request_challenge. Returns a credential JSON string to pass directly to mpp_submit_credential. Also returns the payment_hash for auditing. Supports optional macaroon and challenge_id fields from the challenge for L402-compatible credential construction.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| invoice | Yes | BOLT11 Lightning invoice from the MPP challenge (from mpp_request_challenge) | |
| macaroon | No | Macaroon from mpp_request_challenge (required for L402-compatible servers) | |
| challenge_id | No | MPP challenge_id from mpp_request_challenge (included in credential for server verification) |