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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"invoice": "<invoice>"
},
"name": "wdk_mpp_pay"
}
}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) |