ldk_generate_invoice
Create Lightning invoices with a real payment hash for testing purposes by specifying amount, description, and expiry time. Ideal for iOS Lightning wallet development and integration.
Instructions
Generate a Lightning invoice with real payment hash for testing
Input Schema
Name | Required | Description | Default |
---|---|---|---|
amountSats | Yes | Amount in satoshis | |
description | No | Invoice description | |
expirySeconds | No | Invoice expiry time in seconds (default: 3600) |
Input Schema (JSON Schema)
{
"properties": {
"amountSats": {
"description": "Amount in satoshis",
"minimum": 1,
"type": "number"
},
"description": {
"description": "Invoice description",
"type": "string"
},
"expirySeconds": {
"default": 3600,
"description": "Invoice expiry time in seconds (default: 3600)",
"type": "number"
}
},
"required": [
"amountSats"
],
"type": "object"
}