For developers
Kestrel's TypeScript SDK exposes on-chain account readers, PDA derivation, instruction builders, and composed transaction plans for integrating Kestrel tokens into wallets, dashboards, and DeFi applications.
Install @kestrelfi/lyc-sdk from npm:
pnpm add @kestrelfi/lyc-sdk
Create a client with an Anchor provider and select the Kestrel deployment you want to use:
import { LongYieldCarryClient } from "@kestrelfi/lyc-sdk";
const kestrel = new LongYieldCarryClient(provider, "prod");
const tokens = await kestrel.account.fetchAllTokens();
The client can fetch token and yielding-bank state, derive program addresses, build mint and burn
transactions, and send composed transaction plans. Browser applications that only need reads and
user mint/burn flows can import @kestrelfi/lyc-sdk/core to avoid the operator-only lending and
swap dependency graph.