Skip to main content
POST
/
api
/
v1
/
lsps1
/
estimate_fees
Estimate Fees
curl --request POST \
  --url https://api.staging.kaleidoswap.com/api/v1/lsps1/estimate_fees \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "client_pubkey": "<string>",
  "lsp_balance_sat": 1,
  "client_balance_sat": 1,
  "required_channel_confirmations": 1,
  "funding_confirms_within_blocks": 2,
  "channel_expiry_blocks": 2,
  "token": "<string>",
  "refund_onchain_address": "<string>",
  "announce_channel": true,
  "asset_id": "<string>",
  "lsp_asset_amount": 123,
  "client_asset_amount": 123,
  "rfq_id": "<string>",
  "email": "<string>"
}
'
{
  "setup_fee": 123,
  "capacity_fee": 123,
  "duration_fee": 123,
  "total_fee": 123,
  "applied_discount": 123,
  "discount_code": "<string>"
}

When to Use

Use this endpoint to show users the expected fees before they commit to opening a channel.
For asset purchases, always provide an rfq_id to get accurate pricing.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
client_pubkey
string
required
lsp_balance_sat
integer
required
Required range: x >= 0
client_balance_sat
integer
required
Required range: x >= 0
required_channel_confirmations
integer
required
Required range: x >= 0
funding_confirms_within_blocks
integer
required
Required range: x >= 1
channel_expiry_blocks
integer
required
Required range: x >= 1
token
string | null
refund_onchain_address
string | null
announce_channel
boolean
default:true
asset_id
string | null
lsp_asset_amount
integer | null
client_asset_amount
integer | null
rfq_id
string | null
email
string | null

Optional email for notifications

Response

Successful Response

setup_fee
integer
required
capacity_fee
integer
required
duration_fee
integer
required
total_fee
integer
required
applied_discount
number | null
discount_code
string | null