sanctum
Complete Sanctum SDK for liquid staking, LST swaps, and Infinity pool operations on Solana. Use when working with LSTs (mSOL, jitoSOL, bSOL, INF), staking SOL, swapping between liquid staking tokens, or integrating Sanctum's liquidity infrastructure.
What this skill does
# Sanctum Development Guide
A comprehensive guide for building Solana applications with Sanctum - Solana's largest LST (Liquid Staking Token) platform powering 1,361+ LSTs.
## Overview
Sanctum provides unified liquid staking infrastructure on Solana:
- **Infinity Pool**: Multi-LST liquidity pool with zero-slippage swaps
- **Router**: Instant LST-to-LST swaps via stake account routing
- **Reserve**: Instant SOL liquidity for LST withdrawals
- **LST Creation**: Launch custom liquid staking tokens
- **INF Token**: Yield-bearing token representing Infinity pool shares
### Key Stats
- 1,361+ LSTs supported
- $1.4B+ in swap volume facilitated
- ~8,000 SOL ($1M+) in fees shared with stakers
- Partners: Jupiter (jupSOL), Bybit (bbSOL), Drift (dSOL), crypto.com (cdcSOL)
## Quick Start
### API Setup
```typescript
const SANCTUM_API_BASE = 'https://sanctum-api.ironforge.network';
// All endpoints require API key
const headers = {
'Content-Type': 'application/json',
};
// Example: Get all LST metadata
const response = await fetch(
`${SANCTUM_API_BASE}/lsts?apiKey=${API_KEY}`
);
const lsts = await response.json();
```
### Common LST Addresses
```typescript
const LST_MINTS = {
// Native SOL (wrapped)
SOL: 'So11111111111111111111111111111111111111112',
// Sanctum INF (Infinity pool token)
INF: '5oVNBeEEQvYi1cX3ir8Dx5n1P7pdxydbGF2X4TxVusJm',
// Major LSTs
mSOL: 'mSoLzYCxHdYgdzU16g5QSh3i5K3z3KZK7ytfqcJm7So', // Marinade
jitoSOL: 'J1toso1uCk3RLmjorhTtrVwY9HJ7X8V9yYac6Y7kGCPn', // Jito
bSOL: 'bSo13r4TkiE4KumL71LsHTPpL2euBYLFx6h9HP3piy1', // BlazeStake
// Partner LSTs
jupSOL: 'jupSoLaHXQiZZTSfEWMTRRgpnyFm8f6sZdosWBjx93v', // Jupiter
bbSOL: 'bbso1MfE7KVL7DhqwZ6dVfKrD3oNV1PEykLNM4kk5dD', // Bybit
dSOL: 'Dso1bDeDjCQxTrWHqUUi63oBvV7Mdm6WaobLbQ7gnPQ', // Drift
// Other popular LSTs
hSOL: 'he1iusmfkpAdwvxLNGV8Y1iSbj4rUy6yMhEA3fotn9A', // Helius
pwrSOL: 'pWrSoLAhue6jUxUMbWaY8izMhNpWfhiJk7M3Fy3p1Kt', // Power
laineSOL: 'LAinEtNLgpmCP9Rvsf5Hn8W6EhNiKLZQti1xfWMLy6X', // Laine
};
```
## Core Concepts
### 1. LST (Liquid Staking Token)
LSTs represent staked SOL that remains liquid. When you stake SOL through a stake pool:
- You receive LST tokens representing your stake
- The stake earns validator rewards
- LSTs can be traded, used in DeFi, or swapped back to SOL
### 2. INF Token
INF is Sanctum's flagship yield-bearing token:
- Represents share of Infinity pool's multi-LST holdings
- **Reward-bearing**: Value increases vs SOL (not rebasing)
- Earns weighted average of all LST yields + trading fees
- No lockups - hold to earn, swap out anytime
```typescript
// INF increases in value over time
// Example: 1 INF deposited at 1.0 SOL might be worth 1.05 SOL later
const infValue = await getInfSolValue(); // Returns current INF/SOL rate
```
### 3. SOL Value Calculators
On-chain programs that convert LST amounts to intrinsic SOL value:
```typescript
// Each LST has a dedicated calculator
const SOL_VALUE_CALCULATORS = {
SPL: 'sp1V4h2gWorkGhVcazBc22Hfo2f5sd7jcjT4EDPrWFF',
SanctumSpl: 'sspUE1vrh7xRoXxGsg7vR1zde2WdGtJRbyK9uRumBDy',
SanctumSplMulti: 'ssmbu3KZxgonUtjEMCKspZzxvUQCxAFnyh1rcHUeEDo',
Marinade: 'mare3SCyfZkAndpBRBeonETmkCCB3TJTTrz8ZN2dnhP',
Lido: '1idUSy4MGGKyKhvjSnGZ6Zc7Q4eKQcibym4BkEEw9KR',
wSOL: 'wsoGmxQLSvwWpuaidCApxN5kEowLe2HLQLJhCQnj4bE',
};
```
## API Reference
### Base URL
```
https://sanctum-api.ironforge.network
```
All endpoints require `apiKey` query parameter.
### Get LST Metadata
```typescript
// Get all LSTs
GET /lsts?apiKey={key}
// Get specific LST by mint or symbol
GET /lsts/{mintOrSymbol}?apiKey={key}
// Response
interface LstMetadata {
symbol: string;
mint: string;
decimals: number;
tokenProgram: string;
logoUri: string;
name: string;
tvl: number; // Total Value Locked
apy: number; // Current APY
holders: number;
}
```
### Get APY Data
```typescript
// Get validator APYs
GET /validators/apy?apiKey={key}
// Response
interface ValidatorApy {
[validatorId: string]: {
avgApy: number;
timeseries: Array<{epoch: number; apy: number}>;
};
}
// Get LST historical APYs
GET /lsts/{mintOrSymbol}/apys?apiKey={key}&limit={n}
// Response
interface LstApyHistory {
apys: Array<{
epoch: number;
epochEndTs: number;
apy: number;
}>;
}
```
### Swap LSTs
```typescript
// Get swap quote and unsigned transaction
GET /swap/token/order?apiKey={key}&inp={inputMint}&out={outputMint}&amt={amount}&mode={ExactIn|ExactOut}&signer={walletPubkey}&slippageBps={bps}
// Response
interface SwapOrderResponse {
tx: string; // Base64 encoded transaction
inpAmt: string; // Input amount
outAmt: string; // Output amount
source: string; // Swap source (Infinity, Router, etc.)
feeAmt: string; // Fee amount
feeMint: string; // Fee token mint
}
// Execute signed swap
POST /swap/token/execute
Body: {
signedTx: string; // Base64 signed transaction
orderResponse: object; // Original order response
}
// Response
interface SwapExecuteResponse {
txSignature: string;
}
```
### Deposit Stake Account
```typescript
// Convert native stake account to LST
GET /swap/depositStake/order?apiKey={key}&stakeAccount={pubkey}&outputLstMint={mint}&signer={wallet}
POST /swap/depositStake/execute
Body: {
signedTx: string;
orderResponse: object;
}
```
### Withdraw to Stake Account
```typescript
// Convert LST back to stake account
GET /swap/withdrawStake/order?apiKey={key}&lstMint={mint}&amount={amount}&signer={wallet}&deactivate={boolean}
POST /swap/withdrawStake/execute
Body: {
signedTx: string;
orderResponse: object;
}
```
## TypeScript Integration
### Full Client Implementation
```typescript
import { Connection, PublicKey, Transaction, Keypair } from '@solana/web3.js';
class SanctumClient {
private apiKey: string;
private baseUrl = 'https://sanctum-api.ironforge.network';
private connection: Connection;
constructor(apiKey: string, connection: Connection) {
this.apiKey = apiKey;
this.connection = connection;
}
// Get all LSTs
async getLsts(): Promise<LstMetadata[]> {
const response = await fetch(
`${this.baseUrl}/lsts?apiKey=${this.apiKey}`
);
return response.json();
}
// Get specific LST
async getLst(mintOrSymbol: string): Promise<LstMetadata> {
const response = await fetch(
`${this.baseUrl}/lsts/${mintOrSymbol}?apiKey=${this.apiKey}`
);
return response.json();
}
// Get swap quote
async getSwapQuote(params: {
inputMint: string;
outputMint: string;
amount: string;
mode: 'ExactIn' | 'ExactOut';
signer: string;
slippageBps?: number;
}): Promise<SwapOrderResponse> {
const url = new URL(`${this.baseUrl}/swap/token/order`);
url.searchParams.set('apiKey', this.apiKey);
url.searchParams.set('inp', params.inputMint);
url.searchParams.set('out', params.outputMint);
url.searchParams.set('amt', params.amount);
url.searchParams.set('mode', params.mode);
url.searchParams.set('signer', params.signer);
if (params.slippageBps) {
url.searchParams.set('slippageBps', params.slippageBps.toString());
}
const response = await fetch(url.toString());
return response.json();
}
// Execute swap
async executeSwap(
orderResponse: SwapOrderResponse,
signer: Keypair
): Promise<string> {
// Decode and sign transaction
const txBuffer = Buffer.from(orderResponse.tx, 'base64');
const transaction = Transaction.from(txBuffer);
transaction.sign(signer);
// Send to API
const response = await fetch(`${this.baseUrl}/swap/token/execute`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
signedTx: transaction.serialize().toString('base64'),
orderResponse,
}),
});
const result = await response.json();
return result.txSignature;
}
// SwapRelated in Backend & APIs
jfrog
IncludedInteract with the JFrog Platform via the JFrog CLI and REST/GraphQL APIs. Use this skill when the user wants to manage Artifactory repositories, upload or download artifacts, manage builds, configure permissions, manage users and groups, work with access tokens, configure JFrog CLI servers, search artifacts, manage properties, set up replication, manage JFrog Projects, run security audits or scans, look up CVE details, query exposures scan results from JFrog Advanced Security, manage release bundles and lifecycle operations, aggregate or export platform data, or perform any JFrog Platform administration task. Also use when the user mentions jf, jfrog, artifactory, xray, distribution, evidence, apptrust, onemodel, graphql, workers, mission control, curation, advanced security, exposures, or any JFrog product name.
cupynumeric-migration-readiness
IncludedPre-migration readiness assessor for porting NumPy to cuPyNumeric. Use BEFORE substantial porting work begins when the user asks whether code will scale on GPU, whether they should migrate to cuPyNumeric, which NumPy patterns transfer cleanly, what must be refactored before porting, or mentions pre-port assessment, scaling analysis, or refactor planning. Inspect the user's source code, look up NumPy usage, cross-reference the cuPyNumeric API support manifest, and distinguish distributed-scaling-friendly patterns from blockers such as unsupported APIs, scalar synchronization, host round-trips, Python/object-heavy control flow, shape/data-dependent branching, and in-place mutation hazards. Produce a verdict of READY, LIGHT REFACTOR, SIGNIFICANT REFACTOR, or NOT RECOMMENDED, with concrete refactor pointers.
alibabacloud-data-agent-skill
IncludedInvoke Alibaba Cloud Apsara Data Agent for Analytics via CLI to perform natural language-driven data analysis on enterprise databases. Data Agent for Analytics is an intelligent data analysis agent developed by Alibaba Cloud Database team for enterprise users. It automatically completes requirement analysis, data understanding, analysis insights, and report generation based on natural language descriptions. This tool supports: discovering data resources (instances/databases/tables) managed in DMS, initiating query or deep analysis sessions, real-time progress tracking, and retrieving analysis conclusions and generated reports. Use this Skill when users need to query databases, analyze data trends, generate data reports, ask questions in natural language, or mention "Data Agent", "data analysis", "database query", "SQL analysis", "data insights".
token-optimizer
IncludedReduce OpenClaw token usage and API costs through smart model routing, heartbeat optimization, budget tracking, and native 2026.2.15 features (session pruning, bootstrap size limits, cache TTL alignment). Use when token costs are high, API rate limits are being hit, or hosting multiple agents at scale. The 4 executable scripts (context_optimizer, model_router, heartbeat_optimizer, token_tracker) are local-only — no network requests, no subprocess calls, no system modifications. Reference files (PROVIDERS.md, config-patches.json) document optional multi-provider strategies that require external API keys and network access if you choose to use them. See SECURITY.md for full breakdown.
resend-cli
IncludedUse this skill when the task is specifically about operating Resend from an AI agent, terminal session, or CI job via the official resend CLI: installing/authenticating the CLI, sending/listing/updating/cancelling emails, batch sends, domains and DNS, webhooks and local listeners, inbound receiving, contacts, topics, segments, broadcasts, templates, API keys, profiles, or debugging Resend CLI/API failures. Trigger on mentions of Resend CLI, `resend`, `resend doctor`, `resend emails send`, `resend domains`, `resend webhooks listen`, `resend emails receiving`, or agent-friendly terminal automation.
alibabacloud-odps-maxframe-coding
IncludedUse this skill for MaxFrame SDK development and documentation navigation on Alibaba Cloud MaxCompute (ODPS). Helps answer MaxFrame API, concept, official example, and supported pandas API questions; create data processing programs; read/write MaxCompute tables; debug jobs (remote or local); and build custom DPE runtime images. Trigger when users mention MaxFrame, MaxCompute with MaxFrame, ODPS table processing, DPE runtime, MaxFrame docs/examples, DataFrame/Tensor operations, or GPU runtime setup. Works for both English and Chinese queries about Alibaba Cloud data processing with MaxFrame.