Send Lightning Payment
API-v2lightning::payments::send_payment
Sends a Lightning Network payment to a specified invoice.
Parameter | Type | Required | Description |
---|---|---|---|
coin | string | ✓ | The ticker of the coin to send payment from. |
invoice | string | ✓ | The Lightning invoice to pay. |
amount | string | ✗ | Amount to pay (if not specified in invoice). |
Parameter | Type | Description |
---|---|---|
payment_hash | string | The hash of the payment. |
status | string | Status of the payment. |
id | int | Request identifier. |
lightning::payments::send_payment
POST
lightning::payments::send_payment{
"userpass": "RPC_UserP@SSW0RD",
"mmrpc": "2.0",
"method": "lightning::payments::send_payment",
"params": {
"coin": "tBTC-lightning",
"invoice": "lnbc1..."
},
"id": 102
}