sanctum

Integrate Sanctum APIs for liquid staking, LST swaps, and Infinity pool operations on Solana.

6|20|Updated Mar 14, 2026
One-click install
npx skills add https://github.com/andresdefi/cryptoskills --skill sanctum-andresdefi
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: sanctum
Source: https://github.com/andresdefi/cryptoskills/tree/main/skills/sanctum
Command: npx skills add https://github.com/andresdefi/cryptoskills --skill sanctum-andresdefi

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires @solana/web3.js, @solana/spl-token, bs58.

What problem does it solve? AI agents and developers lack accurate, up-to-date knowledge of Sanctum's liquid staking infrastructure on Solana, leading to hallucinated token mints, wrong program IDs, and outdated API patterns when building LST integrations. ## Core Features & Use Cases - LST Swaps: Get quotes and execute swaps between SOL and 1,361+ liquid staking tokens (mSOL, jitoSOL, bSOL, INF) via the Sanctum Router and Infinity pool. - Staking & Unstaking: Stake SOL for any LST, perform instant unstakes via Infinity/Reserve, or delayed unstakes to stake accounts with lower fees. - Infinity Pool Operations: Deposit SOL or LSTs to receive the yield-bearing INF token, withdraw liquidity, and track INF APY and SOL value. - Use Case: Build a TypeScript client that stakes 5 SOL into jitoSOL, monitors LST APYs across protocols, and consolidates holdings into INF for diversified yield. ## Quick Start Ask the agent to swap 1 SOL for jitoSOL using the Sanctum API with the provided TypeScript client template.

Frequently Asked Questions about sanctum

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I swap between liquid staking tokens on Solana?

Request a quote from the Sanctum API's /swap/token/order endpoint with input mint, output mint, amount, mode, and signer, then sign the returned base64 transaction and submit it to /swap/token/execute. The router automatically selects Infinity, Router, or Reserve as the swap source.

What is the Sanctum INF token and how does it earn yield?

INF is a reward-bearing token representing a share of Sanctum's Infinity multi-LST liquidity pool. Its value increases versus SOL over time by earning the weighted average of all pool LST yields plus a share of swap trading fees, with no lockups.

Does Sanctum support instant unstaking of LSTs to SOL?

Yes, instant unstaking swaps any supported LST back to SOL through the Infinity pool or Reserve at roughly 1-10 bps in fees. A delayed unstake to a stake account avoids swap fees but requires waiting one to two epochs.

Why does the Sanctum API return 401 or 429 errors?

A 401 error means the apiKey query parameter is missing or invalid, since every endpoint requires authentication. A 429 error indicates rate limiting, which you should handle with exponential backoff and by caching LST metadata responses.

Can I convert an existing Solana stake account into an LST?

Yes, use the /swap/depositStake/order endpoint with the stake account public key and desired output LST mint, then execute the signed transaction via /swap/depositStake/execute. The stake account must be active and delegated to a validator supported by the target pool.

What are the fees for Sanctum swaps and withdrawals?

Infinity pool swaps charge 8 bps and INF withdrawals charge 10 bps, with 90% of fees going to liquidity providers. Router operations range from 0 to 10 bps, and StakeWrappedSol carries no fee.