curl --request POST \
--url https://api.example.com/api/v1/lightning/pay \
--header 'Authorization: Bearer <token>' \
--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 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"destination": "<string>",
"amount_sat": 1,
"comment": "<string>"
}
'{
"message": "<string>"
}Documentation Index
Fetch the complete documentation index at: https://second.tech/docs/llms.txt
Use this file to discover all available pages before exploring further.
Base64url-encoded auth token
The invoice, offer, or lightning address to pay
The amount to send (in satoshis). Optional for bolt11 invoices with amount. This must be higher than the minimum fee laid out in server-configured LightningSendFees [blocked]. The wallet must also contain enough funds to cover the amount plus any fees.
x >= 0An optional comment, only supported when paying to lightning addresses
Returns success message, optionally with preimage if payment was immediately settled
Success message
Was this page helpful?