Skip to main content

Overview

The RGB LSPS1 APIs let clients order Lightning channels with RGB asset allocation from a Lightning Service Provider (LSP). Use these endpoints when you need to:
  • Open a channel with RGB assets pre-allocated — the LSP opens the channel and pre-funds it with the requested asset amount on the LSP side.
  • Query LSP capabilities — check supported assets, min/max channel sizes, and fee structures before creating an order.
  • Track channel order status — poll an order until the channel is confirmed and open.
These endpoints are used by the KaleidoSwap Desktop App when you open a channel through the default LSP. SDK users can call them directly via client.maker.createLspOrder(). Base URL: https://api.signet.kaleidoswap.com/api/v1 (Signet)

Get LSP Information

Endpoint

GET /api/v1/lsps1/get_info

Description

Retrieve information about the RGB Lightning Service Provider, including available assets, liquidity options, and channel configurations.

Response Structure

  • lsp_connection_url: The LSP node’s connection URI (pubkey@host:port) — connect to this peer before ordering a channel.
  • options: Configuration settings for orders and channels.
  • assets: List of assets managed by the LSP.

Example Response


Get Network Information

Endpoint

GET /api/v1/lsps1/network_info

Description

Retrieve the LSP node’s current blockchain height and network. Safe to poll and cache.

Example Response


Estimate Fees

Endpoint

POST /api/v1/lsps1/estimate_fees

Description

Estimate the fees for a channel order without creating one. When the client is purchasing assets (client_asset_amount > 0), a fresh rfq_id from /market/quote is required so the asset price can be folded into the total.

Request Body

Example Response


Create Order

Endpoint

POST /api/v1/lsps1/create_order

Description

Create a new order for a channel with the RGB Lightning Service Provider.

Request Body

Example Request

Response Body

Example Response


Get Order

Endpoint

POST /api/v1/lsps1/get_order

Description

Retrieve information about an existing order. This endpoint is safe to poll.

Request Body

Example Request

An invalid access_token returns a 400 error; an unknown order_id returns a 404.

Example Response

The response structure is identical to the create_order endpoint.

Rate Decision

Endpoint

POST /api/v1/lsps1/rate_decision

Description

Resolve a repricing event on an asset-backed order. If the market rate moves significantly before the payment settles, the LSP moves the order into the PENDING_RATE_DECISION state instead of opening the channel. The client must then either accept the new rate (the order proceeds with fresh pricing) or decline it (a refund is initiated to the refund_onchain_address).

Request Body

Example Request

Example Response

Calling this endpoint on an order that is not in the PENDING_RATE_DECISION state returns a 400 error. When a refund is requested and processed, refund_txid carries the on-chain transaction ID.
For more details about trading and market operations, proceed to Market APIs.