Litecoin is quick and cheap to send, which makes it a good coin to be paid in. CoinsFlow is a Litecoin payment gateway: it sees a Litecoin payment seconds after your customer sends it, counts it as paid at the first confirmation, and lets you withdraw it straight away. It costs 0.5% per payment.
A Litecoin payment, minute by minute
| When it is sent | your customer sends LTC to the invoice’s own ltc1… address |
|---|---|
| Seconds later | seen in the mempool: the payment page says it is on its way, and invoice.detected can tell your server |
| About 2.5 minutes | the first confirmation: invoice.paid, the money is in your balance and can be withdrawn |
| About 5 to 30 minutes | final: invoice.settled, at 2 to 12 confirmations, by what the payment is worth |
You make the invoice with one API call or a few clicks in the dashboard, priced in LTC or in US dollars. A dollar price is asked in LTC at the current price, rounded up to 6 decimals, and brought up to date once an hour until it is paid. Your customer gets a payment page with the address, the exact amount, a QR code, and on a phone a button that opens their wallet app.
Litecoin on CoinsFlow, in numbers
| Payment seen | seconds after your customer sends it (in the mempool) |
|---|---|
| Paid, and withdrawable | 1 confirmation, about 2.5 minutes, whatever the amount |
| Final | 2 to 12 confirmations: more for a larger payment |
| Customer’s network fee | usually a fraction of a cent |
| Our fee | 0.5% of each payment |
| Address | native SegWit (ltc1…), a new one for each invoice |
| Invoice open for | 3 days, or up to 7 if you ask; a late payment is still credited |
| Smallest withdrawal | 0.0001 LTC |
Why one confirmation is enough here
A Litecoin block comes about every 2.5 minutes. Once a payment is in one, taking it back means out-mining the whole Litecoin network, which costs far more than an ordinary order is worth. So CoinsFlow counts every Litecoin payment as paid at its first confirmation, whatever its size, and you can withdraw it from then on. For a large payment, the rules below do the rest.
Paid is not yet final. Until the payment is final, a reorganisation of the chain could in principle still take it back. If that happens, the credit is reversed, and a withdrawal made from that money goes with it: before a payment is final, the money can only leave in a transaction that spends the very coins it arrived in, and a reorganisation that removes those coins removes the withdrawal too.
A payment becomes final, invoice.settled, at a depth set by what it is worth in dollars:
| Payment worth | Final at (confirmations) | Time |
|---|---|---|
| Up to $50 | 2 | about 5 minutes |
| Up to $500 | 4 | about 10 minutes |
| Up to $5,000 | 6 | about 15 minutes |
| More than $5,000 | 12 | about 30 minutes |
Two more rules make the early depths safe. At most $5,000 of payments from any one block, everybody's together, become final early; anything beyond that in the same block waits for 12 confirmations. And the dollar value is read from a price less than an hour old; without one, a payment waits for 12. If you hand over something you cannot take back for a large order, deliver on invoice.settled, not invoice.paid. The whole story, with the numbers behind it, is in our article How long does a Litecoin payment take to confirm, and why CoinsFlow counts one confirmation.
Check any payment on our explorer
Payments are read from a Litecoin node we run ourselves, and the same node is behind our public Litecoin explorer. Paste the txid from an invoice's payments into its search and you see the block it is in and how many confirmations it has; a payment still waiting for its block is in the mempool. Nobody else's API decides whether you were paid, and you can check our answer.
A Litecoin invoice in one call
curl https://api.coinsflow.app/v1/invoices \
-H "Authorization: Bearer $COINSFLOW_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: order-1042" \
-d '{"chain":"litecoin","asset":"LTC","priceAmount":"25.00","orderId":"order-1042"}'Send your customer to the paymentUrl in the answer, and fulfil the order on the invoice.paid webhook, or on invoice.settled for a large one. The call in Node.js and Python, and every field, is in the API docs; there is no SDK to install. To try it with no money first, add "test": true to the body and simulate the payment.