Pump.fun Integration

Working with Pump.fun creator vaults.

Fee Flow

  1. Token trades → fees accumulate in Pump.fun vault

  2. Collection → fees move to Claimr PDA

  3. Withdrawal → funds transfer to user's wallet

Vault Derivation

import { PublicKey } from '@solana/web3.js';

const PUMP = new PublicKey('6EF8rrecthR5Dkzon8Nwu78hRvfCKubJ14M5uBEwF6P');

function getCreatorVault(creator: PublicKey): PublicKey {
  const [vault] = PublicKey.findProgramAddressSync(
    [Buffer.from('creator-vault'), creator.toBuffer()],
    PUMP
  );
  return vault;
}

// Derive vault for a Claimr PDA
const pda = getClaimrAddress('44196397');
const vault = getCreatorVault(pda);

Checking Vault Balance

The API returns both balances in a single call:

Triggering Collection

This is a permissionless operation. Funds are transferred from the vault to the PDA.

Last updated