Skip to main content

API Reference

The SDK exports LiquidiumClient, error types, constants, module request types, response types, and wallet action types from @liquidium/client.

Client Modules

ModulePurpose
client.accountsProfile lifecycle, account lookup, and linked wallets
client.activitiesActivity lists and receipt-oriented status
client.historyPool and user history through the Liquidium SDK API
client.simpleLoansAccountless Simple Loans with generated deposit and repayment targets
client.lendingSupply, borrow, withdraw, and inflow reporting
client.marketPools, prices, and pool rate lookups
client.positionsPer-pool positions, health, and aggregate stats
client.quotePure quote helpers from market inputs

Shared Status Types

Use LiquidiumStatus for flow state across Simple Loans, activities, lending responses, and history entries.

TypePurpose
LiquidiumStatusOperation, state, and optional confirmation progress
LiquidiumOperationdeposit, borrow, repayment, withdrawal, or liquidation
LiquidiumStateaction_required, confirming, processing, active, completed, failed, or expired
ActivityInflow or outflow activity returned by activity APIs
GetActivityStatusResponseFound or missing result from client.activities.getStatus(...)

See Status System for UI guidance.

Generated Reference

The generated API reference is built from the current @liquidium/client exports.

Regenerate it with TypeDoc and typedoc-plugin-markdown after changing exported APIs:

pnpm docs:api