Get Lightning deposits
/account/deposits/lightningPrivateGet your Lightning deposits, optionally only the settled (settled=true) or unsettled (settled=false) ones. Paginated, newest first.
Permissions: account:deposits:read
from?stringStart date, unix epoch 0 by default
date-time"1970-01-01T00:00:00.000Z"to?stringEnd date, default to current time
date-time"2026-11-09T17:08:56.661Z"limit?integerNumber of entries to return, default to 1000
1 <= value <= 10001000cursor?stringCursor for pagination
date-timesettled?stringFilter by settled status
OK
application/json- response
data*array<|>nextCursor*|Cursor to use for fetching the next page of results. Pass this value as the cursor parameter in the next request. Returns null when there are no more results.
import { createHttpClient } from '@ln-markets/sdk/rest/v3'
const client = createHttpClient({
key: 'your-key',
secret: 'your-secret',
passphrase: 'your-passphrase',
})
const result = await client.account.getLightningDeposits({
from: '1970-01-01T00:00:00.000Z',
to: '2026-11-09T17:08:56.136Z',
limit: 500
}){
"data": [
{
"id": "69c09d09-8ce9-446b-a3c6-455fed8b3048",
"createdAt": "2024-02-07T14:58:12.272Z",
"amount": 10000,
"paymentHash": "Cca7507897abc89628f450e8b1e0c6fca4ec3f7b34cccf55f3f531c659ff4d79",
"settledAt": "2024-02-07T14:58:12.272Z",
"comment": "Hello world"
}
],
"nextCursor": "2024-01-15T10:30:00.000Z"
}Get on-chain deposits GET
Get your on-chain deposits, optionally filtered by status, with their confirmations. Paginated, newest first.
Deposit Lightning POST
Create a Lightning invoice to deposit amount sats. Returns the deposit depositId and the invoice (paymentRequest), which expires after 24 hours. With…