Client Initialization
MakerClient (client.maker)
All market, order, swap, and LSPS1 operations are accessed via client.maker.
Market Operations
listAssets / list_assets
List all available assets.
listPairs / list_pairs
List all available trading pairs with min/max limits and supported layers.
getQuote / get_quote
Get a price quote for a swap.
getPairRoutes / get_pair_routes
Get available routes for a trading pair.
getMarketRoutes / get_market_routes
Discover routes across the market.
Swap Order Operations
createSwapOrder / create_swap_order
Create a new swap order from a quote.
getSwapOrderStatus / get_swap_order_status
Get the current status of a swap order.
getOrderHistory / get_order_history
Get order history with optional filters.
getOrderAnalytics / get_order_analytics
Get order statistics and analytics.
submitRateDecision / submit_rate_decision
Accept or reject a rate change on a pending order.
waitForSwapCompletion / wait_for_swap_completion
Poll an order until it reaches a final state.
Atomic Swap Operations
These methods support the lower-level atomic swap protocol for direct node-to-node swaps.initSwap / init_swap
Initiate an atomic swap.
executeSwap / execute_swap
Execute/confirm an atomic swap.
getAtomicSwapStatus / get_atomic_swap_status
Get atomic swap status.
getSwapNodeInfo / get_swap_node_info
Get node information for swaps.
LSPS1 Operations
getLspInfo / get_lsp_info
Get LSP (Lightning Service Provider) information.
getLspNetworkInfo / get_lsp_network_info
Get LSP network information.
createLspOrder / create_lsp_order
Create an LSPS1 channel order.
getLspOrder / get_lsp_order
Get LSPS1 order status.
estimateLspFees / estimate_lsp_fees
Estimate fees for an LSPS1 channel order.
submitLspRateDecision / submit_lsp_rate_decision
Accept or reject a rate change on an LSP order.
retryAssetDelivery / retry_asset_delivery
Retry asset delivery for a failed order.
WebSocket Operations
enableWebSocket / enable_websocket
Enable WebSocket for real-time quote streaming.
streamQuotes / stream_quotes
Stream real-time quotes for a specific route.
streamQuotesByTicker / stream_quotes_by_ticker
Stream quotes by ticker with auto-discovered routes.
streamQuotesForAllRoutes / stream_quotes_for_all_routes
Stream quotes for all available routes between two assets.
getAvailableRoutes / get_available_routes
Get available routes for a trading pair.
Convenience Methods
toRaw / to_raw
Convert a display amount to raw (smallest unit) amount.
toDisplay / to_display
Convert a raw amount to display amount.
RlnClient (client.rln)
All RGB Lightning Node operations are accessed via client.rln. Requires nodeUrl / node_url to be configured.
Wallet Management
| Method (TS) | Method (Python) | Description |
|---|---|---|
getNodeInfo() | get_node_info() | Get node information (pubkey, alias, etc.) |
getNetworkInfo() | get_network_info() | Get network information |
initWallet(body) | init_wallet(body) | Initialize a new wallet |
unlockWallet(body) | unlock_wallet(body) | Unlock the wallet |
lockWallet() | lock_wallet() | Lock the wallet |
changePassword(body) | change_password(body) | Change wallet password |
backup(body) | backup(body) | Backup node data |
restore(body) | restore(body) | Restore from backup |
shutdown() | shutdown() | Shut down the node |
BTC Operations
| Method (TS) | Method (Python) | Description |
|---|---|---|
getAddress() | get_address() | Get a Bitcoin address |
getBtcBalance(skipSync?) | get_btc_balance(skip_sync?) | Get BTC balance |
sendBtc(body) | send_btc(body) | Send BTC on-chain |
listTransactions(request?) | list_transactions(request?) | List transactions |
listUnspents() | list_unspents() | List unspent outputs |
createUtxos(body) | create_utxos(body) | Create UTXOs |
estimateFee(body) | estimate_fee(body) | Estimate transaction fee |
RGB Asset Operations
| Method (TS) | Method (Python) | Description |
|---|---|---|
listAssets(filter?) | list_assets(filter?) | List RGB assets |
getAssetBalance(body) | get_asset_balance(body) | Get asset balance |
getAssetMetadata(body) | get_asset_metadata(body) | Get asset metadata |
getAssetMedia(body) | get_asset_media(body) | Get asset media |
issueAssetNIA(body) | issue_asset_nia(body) | Issue NIA asset |
issueAssetCFA(body) | issue_asset_cfa(body) | Issue CFA asset |
issueAssetUDA(body) | issue_asset_uda(body) | Issue UDA asset |
sendAsset(body) | send_asset(body) | Send RGB asset |
listTransfers(body) | list_transfers(body) | List transfers |
refreshTransfers(body?) | refresh_transfers(body?) | Refresh transfer status |
failTransfers(body) | fail_transfers(body) | Fail pending transfers |
Lightning Channels
| Method (TS) | Method (Python) | Description |
|---|---|---|
listChannels() | list_channels() | List all channels |
openChannel(body) | open_channel(body) | Open a new channel |
closeChannel(body) | close_channel(body) | Close a channel |
getChannelId(body) | get_channel_id(body) | Get channel ID |
Lightning Peers
| Method (TS) | Method (Python) | Description |
|---|---|---|
listPeers() | list_peers() | List connected peers |
connectPeer(body) | connect_peer(body) | Connect to a peer |
disconnectPeer(body) | disconnect_peer(body) | Disconnect a peer |
Invoices and Payments
| Method (TS) | Method (Python) | Description |
|---|---|---|
createLNInvoice(body) | create_ln_invoice(body) | Create Lightning invoice |
createRgbInvoice(body) | create_rgb_invoice(body) | Create RGB invoice |
decodeLNInvoice(body) | decode_ln_invoice(body) | Decode Lightning invoice |
decodeRgbInvoice(body) | decode_rgb_invoice(body) | Decode RGB invoice |
getInvoiceStatus(body) | get_invoice_status(body) | Get invoice status |
sendPayment(body) | send_payment(body) | Send Lightning payment |
keysend(body) | keysend(body) | Send keysend payment |
listPayments() | list_payments() | List payments |
getPayment(body) | get_payment(body) | Get payment details |
Swap Operations (Node-Level)
| Method (TS) | Method (Python) | Description |
|---|---|---|
getTakerPubkey() | get_taker_pubkey() | Get taker public key |
whitelistTrade(body) | whitelist_swap(body) | Whitelist a trade |
makerInit(body) | maker_init(body) | Initialize maker swap |
makerExecute(body) | maker_execute(body) | Execute maker swap |
listSwaps() | list_swaps() | List all swaps |
getSwap(body) | get_swap(body) | Get swap details |
Utility Methods
| Method (TS) | Method (Python) | Description |
|---|---|---|
signMessage(body) | sign_message(body) | Sign a message |
sendOnionMessage(body) | send_onion_message(body) | Send an onion message |
checkIndexerUrl(body) | check_indexer_url(body) | Check indexer URL |
checkProxyEndpoint(body) | check_proxy_endpoint(body) | Check proxy endpoint |
revokeToken(body) | revoke_token(body) | Revoke auth token |