create_invoice
Generate a Lightning invoice to receive a specified amount of Bitcoin in satoshis for a BTC wallet, with optional memo, expiration, and tracking ID.
Instructions
Create a Lightning invoice to receive a specific amount of Bitcoin. Amount is in satoshis for BTC wallet.
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": {
"wallet_id": "<wallet_id>",
"amount": "<amount>"
},
"name": "create_invoice"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| memo | No | Optional memo/description for the invoice | |
| amount | Yes | Amount in satoshis to receive | |
| wallet_id | Yes | The BTC wallet ID to receive funds | |
| expires_in | No | Invoice expiration time in minutes (default: 24 hours) | |
| external_id | No | Optional external reference ID for tracking |