DumpFun IDL

dumpfunv0.1.0Token Launchpad
Program Address
DumpFunGAgW6kPHzWMA3Nnqecyrd6SGnLZvNGp2aHwEa
On-chain

DumpFun (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.

5
Instructions
1
Accounts
4
Events
6
Types

Instructions

buy_exact_tokensbuy_tokens_with_exact_soldrain_pool_surplusmintsell_exact_tokens

Account Types

LiquidityPool

Events

BuyTokenEventDrainPoolEventSellTokenEventTokenCreatedEvent

Integration Examples

Use the DumpFun 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 DumpFun IDL
import idl from "./dumpfun.json";

const PROGRAM_ID = new PublicKey("DumpFunGAgW6kPHzWMA3Nnqecyrd6SGnLZvNGp2aHwEa");

// 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.dumpFun
  .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

dumpfun.json
{
  "address": "DumpFunGAgW6kPHzWMA3Nnqecyrd6SGnLZvNGp2aHwEa",
  "metadata": {
    "name": "dump_contract",
    "version": "0.1.0",
    "spec": "0.1.0",
    "description": "Created with Anchor"
  },
  "instructions": [
    {
      "name": "buy_exact_tokens",
      "discriminator": [
        129,
        145,
        209,
        75,
        88,
        169,
        142,
        8
      ],
      "accounts": [
        {
          "name": "user",
          "writable": true,
          "signer": true
        },
        {
          "name": "platform_fee_wallet",
          "writable": true
...

Frequently Asked Questions

What is the DumpFun IDL?

The DumpFun IDL (Interface Definition Language) is a JSON schema that defines the on-chain program interface for the DumpFun smart contract on Solana. It describes all available instructions, account structures, events, and custom types that developers need to interact with the DumpFun program. This IDL contains 5 instructions, 1 account types, 4 events, and 6 type definitions.

How do I use the DumpFun 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 DumpFun program address on Solana?

The DumpFun program is deployed at address DumpFunGAgW6kPHzWMA3Nnqecyrd6SGnLZvNGp2aHwEa on Solana mainnet. You can verify this on any Solana block explorer.

What version of the DumpFun IDL is this?

This is version 0.1.0 of the DumpFun 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.