Pump.fun IDL
6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6PPump.fun is the leading Solana memecoin launchpad protocol. Allows users to deploy tokens on a bonding curve and trade them instantly. Tokens automatically migrate to Raydium upon reaching the graduation threshold.
Instructions
Account Types
Events
Integration Examples
Use the Pump.fun IDL in your application with these code examples for TypeScript, Rust, and Python.
import { Connection, PublicKey } from "@solana/web3.js";
import { Program, AnchorProvider, Idl } from "@coral-xyz/anchor";
// Load the Pump.fun IDL
import idl from "./pump.fun.json";
const PROGRAM_ID = new PublicKey("6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P");
// Set up the provider and program
const connection = new Connection("https://api.mainnet-beta.solana.com");
const provider = new AnchorProvider(connection, wallet, {
commitment: "confirmed",
});
const program = new Program(idl as Idl, provider);
// Fetch and decode an account
const accountData = await program.account.pump_fun
.fetch(accountPublicKey);
console.log("Account data:", accountData);
// Build and send an instruction
const tx = await program.methods
.initialize(/* ...args */)
.accounts({
/* ...required accounts */
})
.rpc();
console.log("Transaction signature:", tx);IDL JSON Preview
{
"address": "6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P",
"metadata": {
"name": "pump",
"version": "0.1.0",
"spec": "0.1.0",
"description": "Created with Anchor"
},
"instructions": [
{
"name": "admin_set_creator",
"docs": [
"Allows Global::admin_set_creator_authority to override the bonding curve creator"
],
"discriminator": [
69,
25,
171,
142,
57,
239,
13,
4
],
"accounts": [
{
"name": "admin_set_creator_authority",
"signer": true,
"relations": [
"global"
...Frequently Asked Questions
What is the Pump.fun IDL?
The Pump.fun IDL (Interface Definition Language) is a JSON schema that defines the on-chain program interface for the Pump.fun smart contract on Solana. It describes all available instructions, account structures, events, and custom types that developers need to interact with the Pump.fun program. This IDL contains 29 instructions, 6 account types, 23 events, and 34 type definitions.
How do I use the Pump.fun IDL in my project?
Download the JSON file and import it in your project. With TypeScript, use the @coral-xyz/anchor package to create a Program instance. In Rust, use anchor-client. For Python, use anchorpy. See the integration examples above for complete code snippets in all three languages.
What is the Pump.fun program address on Solana?
The Pump.fun program is deployed at address 6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P on Solana mainnet. You can verify this on any Solana block explorer.
What version of the Pump.fun IDL is this?
This is version 0.1.0 of the Pump.fun IDL. IDL versions correspond to specific program deployments and may be updated as the protocol evolves. Always verify compatibility with the on-chain program version before integrating.