Deposit Lightning
/account/deposit/lightningPrivateCreate a Lightning invoice to deposit amount sats. Returns the deposit depositId and the invoice (paymentRequest), which expires after 24 hours. With descriptionHash, the invoice commits to that hash instead of a default description. Track the deposit with GET /account/deposits/lightning.
Permissions: account:deposits:write
application/json- body
amount*integerAmount to deposit
0 < valuecomment?stringComment for the deposit
descriptionHash?stringDescription hash for the deposit
^[a-f0-9]{64}$OK
application/json- response
depositId*stringDeposit ID
paymentRequest*stringPayment request
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.depositLightning({
amount: 1000
}){
"depositId": "66d68e66-b450-4ce2-a402-fd8c8dab828e",
"paymentRequest": "lnbc13370n1pjufyndpp5p96cfwq662q0mkn7a0vy4h8rq5z6kw5q0lv60udwrhg8na909wwsdzcf38zqntpwf4k2arnypzx2ur0wd5hggp4x9jk2vp4vc6z6dtxx4nz6dryxqez6wpsxumz6cejvcmnzc3nxs6nwdehcqzzsxqzz6rzjqvk2judrj9wvqukxqpqdy3vrfdx4dueytnx4hpf70uf0r7ewlhmjuqqzpcqqqqgqqqqqqqlgqqqqqqgq2qsp5aynr4rr94ytesyx7pep2024ssdqjx7dj6m6ncckt0vt6nkcydp6q9qyyssqxx0r3nxy84ym9t5d4nrj2h90elhmmt5q7av3vq0tdcdxzpvu6fwpp96ejfkdg2fm8kuzkfp72qwxw24g4k73dalcn2gqzvmp3q369mqpydqr3r"
}Get Lightning deposits GET
Get your Lightning deposits, optionally only the settled (settled=true) or unsettled (settled=false) ones. Paginated, newest first.
Cancel all orders POST
Deprecated: /futures is being replaced by the /perp API; this route has no /perp equivalent yet. Cancel all your open cross orders. Returns the canceled…