curl --request POST \
--url https://api.example.com/api/v1/lightning/pay \
--header 'Content-Type: application/json' \
--data '
{
"destination": "<string>",
"amount_sat": 1,
"comment": "<string>"
}
'{
"message": "<string>"
}Sends a payment to a Lightning destination. Accepts a BOLT11 invoice, BOLT12 offer, or Lightning address. The amount_sat field is required for Lightning addresses but optional for invoices and offers. Comments are only supported for Lightning addresses.
curl --request POST \
--url https://api.example.com/api/v1/lightning/pay \
--header 'Content-Type: application/json' \
--data '
{
"destination": "<string>",
"amount_sat": 1,
"comment": "<string>"
}
'{
"message": "<string>"
}Returns success message, optionally with preimage if payment was immediately settled
Success message
Was this page helpful?