pay_with_nwc
Pay BOLT-11 Lightning invoices via NIP-47 Nostr Wallet Connect. Provide the invoice and optional amount or timeout to complete the payment.
Instructions
Pay a BOLT-11 Lightning invoice via NIP-47 Nostr Wallet Connect (alias).
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": "pay_with_nwc"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nwcUri | No | Optional NWC connection URI (falls back to env NWC_CONNECTION_URI) | |
| invoice | Yes | BOLT-11 Lightning invoice | |
| timeoutMs | No | Timeout in milliseconds (default: 15000) | |
| amountMsat | No | Optional amount in millisatoshis for amountless invoices |