make_invoice
Generate a Bitcoin Lightning invoice with customizable fields such as amount, description, expiry, and metadata, using NWC MCP Server to enable payment functionalities within language models.
Instructions
Create a lightning invoice
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amount | Yes | amount in millisats | |
description | No | note, memo or description describing the invoice | |
description_hash | No | hash of a note, memo or description that is too long to fit within the invoice | |
expiry | No | expiry in seconds | |
metadata | No | Optional metadata to include with the payment |
Input Schema (JSON Schema)
{
"$schema": "http://json-schema.org/draft-07/schema#",
"additionalProperties": false,
"properties": {
"amount": {
"description": "amount in millisats",
"type": "number"
},
"description": {
"description": "note, memo or description describing the invoice",
"type": "string"
},
"description_hash": {
"description": "hash of a note, memo or description that is too long to fit within the invoice",
"type": "string"
},
"expiry": {
"description": "expiry in seconds",
"type": "number"
},
"metadata": {
"additionalProperties": true,
"description": "Optional metadata to include with the payment",
"properties": {},
"type": "object"
}
},
"required": [
"amount"
],
"type": "object"
}