Solana IDL library

The interface files for 70 Solana programs from 32 protocols, free to download, each with TypeScript, Rust and Python examples.

A quiet stack of pagesAn abstract drawing of light on the page's dark ground. A neat stack of thin, solid pages, the top one lit, with faint streams of light drifting toward it from the left.A quiet stack of pagesAn abstract drawing of light on the page's dark ground. A neat stack of thin, solid pages, the top one lit, with faint streams of light drifting toward it from the left.

70 of 70

Solana program IDLs
ProgramProtocolWhat it is
Aldrin CLOB DEXaldrinDEX / AMMAldrin CLOB (Central Limit Order Book) is an on-chain order book DEX on Solana. Supports limit orders, order matching, settlement, and market operations with full on-chain transparency.
Aldrin Farming Pool v1aldrinDEX / AMMAldrin Market Making Farming Pool v1 enables liquidity providers to stake LP tokens and earn farming rewards. Provides yield incentives for market makers on the Aldrin DEX.
AlphaQalphaqDeFi / SwapAlphaQ is a Solana swap protocol that routes token trades through optimized market-state vaults. Provides a single Swap instruction with directional trading (aToB), minimum output protection, and vendor-key fee routing.
BonkSwapbonkswapDEX / AMMBonkSwap is a Solana AMM DEX built for the BONK memecoin ecosystem. Features pool creation, liquidity provision, token swapping with multi-tier fees (LP, buyback, project, Mercanti), and built-in farming rewards for LPs.
BoopboopToken LaunchpadBoop is a Solana token launchpad with built-in fee sharing. Enables token creation on bonding curves with SOL collateral, buy/sell trading with slippage protection, operator management, and vault-based fee distribution.
Drift v2driftPerpetuals / TradingDrift Protocol v2 is a decentralized perpetual futures and spot margin trading exchange on Solana. Supports up to 20x leverage, cross-margin accounts, an on-chain order book, market maker vaults, and insurance fund staking.
DumpFundumpfunToken LaunchpadDumpFun (dump.fun) is a Solana token launchpad supporting bonding curve token creation. Features exact-token and exact-SOL buy/sell operations, PDA-derived liquidity pools, platform fee collection, and pool surplus draining.
GoonFigoonfiDeFi / SwapGoonFi is a minimal Solana swap protocol providing a single-instruction token swap interface with directional bidding (isBid), market-based pool routing, and sysvar instructions introspection for security.
HeavenheavenDeFi / YieldHeaven is a Solana DeFi protocol combining token swap AMM mechanics with liquid staking via Marinade (mSOL) and Kamino yield strategies. Features buy/sell trading, admin-controlled staking rewards, and trading fee sharing.
JupiterjupiterDEX AggregatorJupiter is the leading swap aggregator on Solana, routing trades across dozens of DEXes for optimal pricing. Also offers limit orders, DCA (dollar-cost averaging), perpetual futures, and token launchpad services.
Lifinity v1lifinityDEX / AMMLifinity v1 is a proactive market maker DEX on Solana that uses oracle-driven pricing (Pyth/Switchboard) to reduce impermanent loss. Supports token swaps with oracle price feeds and two-sided liquidity deposits/withdrawals.
Magic Eden M2magicedenNFT MarketplaceMagic Eden M2 is the second-generation marketplace program for listing, buying, and selling NFTs on Solana. Supports fixed-price listings, auctions, collection offers, and royalty enforcement.
Magic Eden MMMmagicedenNFT MarketplaceMagic Eden MMM (M3) is the market-making program powering collection-level bids and instant liquidity for NFTs on Solana. Enables automated NFT market making with configurable pricing curves.
ManifestmanifestDEX / Order BookManifest is a hyper-efficient, fully on-chain order book exchange on Solana by CKS Systems. Features seat-based trading access, batch order updates, Swap/SwapV2, and a global order system for cross-market capital efficiency.
Metaplex AuctionmetaplexNFT / Digital AssetsMetaplex Auction is the on-chain auction program for NFTs and digital assets on Solana. Manages English and open edition auctions with bid placement, cancellation, settlement, and prize claiming.
BubblegummetaplexNFT / Digital AssetsMetaplex Bubblegum is the compressed NFT (cNFT) program on Solana. Enables minting millions of NFTs at a fraction of the cost using Merkle trees for state compression while maintaining full on-chain verifiability.
MetaplexmetaplexNFT / Digital AssetsMetaplex is the core program that orchestrates NFT storefronts, auction houses, and marketplace operations on Solana. Manages store whitelisting, auction managers, and prize redemption.
Candy Machine v1metaplexNFT / Digital AssetsMetaplex Candy Machine v1 is the original NFT minting program on Solana. Enables collection creators to set up fair launches with configurable mint prices, go-live dates, and per-wallet limits.
Candy Machine v2metaplexNFT / Digital AssetsMetaplex Candy Machine v2 is the improved NFT minting program with enhanced features including hidden settings, whitelist token gating, captcha verification, and sequential/random minting modes.
Token MetadatametaplexNFT / Digital AssetsMetaplex Token Metadata is the standard program for attaching rich metadata (name, symbol, URI, creators, royalties) to SPL tokens and NFTs on Solana. The foundation of all Solana NFT standards.

About Solana IDLs

A Solana IDL is a JSON schema describing an on-chain program's whole interface. Most are generated by the Anchor framework, and they list every instruction, account layout, custom type, event and error code a client needs to call the program.

With the right IDL you get type-safe calls from TypeScript (@coral-xyz/anchor), Rust (anchor-client) and Python (anchorpy). It is the first thing you need for a trading bot, a DeFi integration, a marketplace or an analytics job.

The library covers DEXes (Raydium, Orca, Jupiter, Phoenix, OpenBook), launchpads (PumpFun, Moonshot, Boop), NFT platforms (Metaplex, Magic Eden, Tensor), perpetuals (Drift) and core Solana programs (SPL, Native).

Frequently asked questions

What is a Solana IDL?

A Solana IDL (Interface Definition Language) is a JSON file that describes the interface of an on-chain Solana program. It defines the program's instructions, account structures, events, and types, enabling developers to interact with smart contracts using frameworks like Anchor in TypeScript, Rust, or Python.

How do I use a Solana IDL in my project?

Download the IDL JSON file for the protocol you want to interact with. Then use it with the Anchor framework: in TypeScript with @coral-xyz/anchor, in Rust with anchor-client, or in Python with anchorpy. The IDL allows you to call instructions, decode account data, and subscribe to events.

Which Solana protocols have IDLs available?

This library includes IDLs for 32+ protocols including PumpFun, PumpSwap, Raydium, Jupiter, Orca, Meteora, Drift, Metaplex, OpenBook, Phoenix, Tensor, Magic Eden, and many more. All IDLs are free to download and use.

Are these IDLs up to date?

We update IDLs as protocols release new versions. Each IDL page shows its version and program address, so you can check it against the program deployed on-chain. If you need an IDL that isn't listed, ask us on Discord.

Build with these IDLs

  • Solana RPC

    Read program accounts and decode them with the IDL.

  • Yellowstone gRPC

    Stream account and transaction updates for any program here.

  • ShredStream

    See transactions for these programs while the block is still being built.

  • Trading products

    The PumpFun sniper, SolTrace copy trading and the rest of our tools.

  • Co-location

    Run your integration on servers in Frankfurt, Amsterdam and Chicago.