sanctum

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

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

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 swap, staking, or Infinity pool integrations. ## Core Features & Use Cases - LST Swaps: Generate 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?

Use the Sanctum API's /swap/token/order endpoint to get a quote and unsigned transaction, sign it with your wallet, then POST it to /swap/token/execute. Swaps route through the Infinity pool or Router at intrinsic SOL value with fees around 8 bps.

How to stake SOL for mSOL or jitoSOL with Sanctum?

Request a swap quote with SOL as input and the target LST mint as output, sign the returned transaction, and execute it via the API. The same flow works for any of the 1,361+ supported LSTs including mSOL, jitoSOL, and INF.

What is the INF token in Sanctum?

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

Does Sanctum support instant unstaking of LSTs?

Yes, instant unstaking swaps any LST back to SOL through the Infinity pool or Reserve for roughly 1-10 bps in fees. A delayed unstake option withdraws to a stake account with zero 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 all endpoints require authentication. A 429 error indicates rate limiting, which you should handle with exponential backoff and by caching LST metadata responses.

Can Jupiter be used instead of the Sanctum API for LST swaps?

Yes, Jupiter's aggregator integrates the Sanctum Router and automatically routes through it when optimal. Use the Jupiter SDK's computeRoutes with your input and output LST mints, and it will include Sanctum routes in the comparison.