On this page

latest contributor to this doc

Last Edit:

@smk762

Send Lightning Payment

API-v2lightning::payments::send_payment

Sends a Lightning Network payment to a specified invoice.

ParameterTypeRequiredDescription
coinstringThe ticker of the coin to send payment from.
invoicestringThe Lightning invoice to pay.
amountstringAmount to pay (if not specified in invoice).

ParameterTypeDescription
payment_hashstringThe hash of the payment.
statusstringStatus of the payment.
idintRequest 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
}