SDK
Application API for wallets, market data, execution, history, and payouts.
Client
ts
import { createSolard } from "@solard/sdk";
const slrd = createSolard({ rpcUrl, dbPath });
try {
const wallets = slrd.listWallets();
const price = await slrd.samplePrice(token);
const receipt = await slrd.buy(token, wallet, amount);
} finally {
slrd.close();
}The client owns durable Solard state. Create one per process or service boundary and close it when that owner stops.
Subscriptions
ts
import {
subscribeLaunches,
subscribeMigrations,
subscribeTrades,
} from "@solard/sdk";Live subscriptions use an application-owned Solana Connection. Solard decodes protocol events; the application chooses what to watch and what to do with them.
Reference
ClientWallets, tokens, balances, holders, prices, buy, sell.→SubscriptionsLaunches, migrations, trades, metadata, lifecycle.→HistoryReplay, market history, coverage, merged streams.→Claims & payoutsCreator-fee claims and cumulative distributions.→TypesPublic refs, amounts, events, receipts, snapshots, state.→