Pay the LNURL invoice

To perform payment via LNURL customer should send 2 requests: first one to retrieve lightning invoice from LNURL invoice, and second one is sending lightning payment with decoded invoice received from first call.

To retrieve lightning invoice from LNURL

Swagger UI: GET /gateway/api/lightning/v1/invoice/from/lnurl/<LNURL_INVOICE>

curl --location --request GET 'https://api.kaminari.cloud/gateway/api/lightning/v1/invoice/from/lnurl/<LNURL_INVOICE>?amount=<AMOUNT>&nonce=1699926593' \
--header 'X-kaminari-api-key: <API_KEY>' \
--header 'X-kaminari-api-signature: <API_SIGNATURE>' \
--header 'Content-Type: application/json' \

Response

{
    "invoice":"lnbcrt30n1pjyhhm0pp5a0d9fcpc7hjgtdjx807mxxplc5aycl30j3mtkfxxrqklyzk7vz2sdqqcqzpgxqyz5vqsp59frlcse2rhe87j7fjuqt9rcuwjjqmh8e7yuplmkxhx0mksypvdys9qyyssqz57l8jlt3gtjxnf8udmsjqhu80p7cd3dcatx8tv55ww5wz8aymthpxspvh3tlpygjufxhak2ucvym2vz955y4wcrcvv4d322gwk2ancpraul9r"
}

Endpoint will provide default lightning invoice, which customer could send with send lightning invoice method.

Last updated