Free Real-Time WebSocket API
Stream new token launches, track trades, monitor wallets, and snipe on Pump.fun and PumpSwap — all in real time. No API key, no fees.
import WebSocket from 'ws';
const ws = new WebSocket('wss://pumpdev.io/ws');
ws.on('open', () => ws.send(JSON.stringify({
method: 'subscribeNewToken'
})));
ws.on('message', (data) => console.log(JSON.parse(data.toString())));What the PumpFun API Offers
Lightning API
One HTTP call = done. No wallet setup, no signing, no RPC management needed.
Learn more →Trading API
Buy and sell pump.fun tokens programmatically. Supports slippage control, priority fees, and multiple RPC endpoints.
Learn more →Real-Time WebSocket
Stream new token launches, trades, and wallet activity. Perfect for snipers and analytics dashboards.
Learn more →Token Creation
Launch pump.fun tokens with custom metadata, socials, and optional dev buy. Built-in metadata hosting.
Learn more →Fee Claiming
Automatically collect creator royalties from all your tokens. One transaction claims everything.
Learn more →Client-Side Signing
Full security and control. We build the transaction, you sign and send it. Your keys never leave your machine.
Learn more →What You Can Build with the PumpFun API
Trading Bots
Automated buy/sell with real-time data
Sniper Bots
Instant alerts + fast trade execution
Token Launchers
Create tokens with Jito bundles
Analytics
Real-time dashboards and whale tracking
Copy Trading
Mirror wallet trades automatically
Auto-Claim
Scheduled creator fee collection
Quick Start
Two ways to trade pump.fun tokens. Choose the one that fits your setup.
We handle everything — signing, sending, and confirming. Just pass your trade params and API key.
// One HTTP call = done
const res = await fetch(
'https://pumpdev.io/api/trade-lightning?api-key=YOUR_KEY',
{
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
action: 'buy',
mint: 'TokenMintAddress',
amount: 0.1,
denominatedInSol: 'true',
})
}
);
const { signature } = await res.json();
console.log('Done!', signature);We build the transaction, you sign it locally. Full control — your private keys never leave your machine.
// Client-side signing — your keys never leave your machine
const response = await fetch('https://pumpdev.io/api/trade-local', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
publicKey: wallet.publicKey.toBase58(),
action: 'buy',
mint: 'TokenMintAddress',
amount: 0.1, // Buy with 0.1 SOL
denominatedInSol: 'true',
})
});
// Sign locally (your keys stay safe)
const data = await response.arrayBuffer();
const tx = VersionedTransaction.deserialize(new Uint8Array(data));
tx.sign([wallet]);
// Send to Solana
const signature = await connection.sendTransaction(tx);
console.log('Buy executed:', signature);PumpFun API Endpoints
POST /api/trade-lightningOne-call buy/sell — server signs + sends to Solana
POST /api/create-lightningOne-call token launch — metadata, sign, send
POST /api/bundle-lightningAtomic Jito bundle — up to 4 txs, server-side
WSS /wsReal-time token launches, trades, wallet tracking
POST /api/trade-localBuy/sell transaction — client-side signing
POST /api/trade-bundleMulti-wallet trades in one request
POST /api/createToken creation — client-side signing
POST /api/create-bundleCreate + multi-buyer Jito bundle
POST /api/bundleUnified local-sign Jito bundle
POST /api/claim-accountClaim creator fees from all tokens
POST /api/claim-cashbackClaim cashback rewards
POST /api/wallet/createGenerate wallet + Lightning API key
POST /api/transferTransfer SOL between wallets
POST /api/transfer-allTransfer all SOL from wallet (minus fees)
Frequently Asked Questions
What is the PumpFun API?
The PumpFun API is the most affordable way for developers to interact with pump.fun. It offers a REST API and WebSocket SDK to buy and sell tokens, create new tokens with hosted or IPFS metadata, stream real-time trade data, and submit Jito bundles — all without managing wallets or RPC connections directly.
How do I buy pump.fun tokens programmatically with the pumpfun api?
Using the pumpfun api, send a POST request to /api/trade-local with your public key, token mint address, and SOL amount. The API returns a serialized transaction you sign locally and submit to Solana. For fully server-side trading with no wallet SDK required, use /api/trade-lightning — one call handles signing and broadcast.
How much does the PumpFun API cost?
The pumpfun api offers free WebSocket data streaming and free token creation without a dev buy. Trades and dev buys incur a 0.25% fee per transaction. There are no monthly subscription fees or API key charges to get started.
What is the Lightning API and how does it work?
The Lightning API (/api/trade-lightning) is a server-side trading endpoint. One HTTP call = done. You provide trade parameters and an API key — no Solana SDK or wallet setup needed on your end.
Does the pumpfun api support Jito bundles for token launches?
Yes. The pumpfun api's /api/create-bundle endpoint lets you launch a pump.fun token and include up to 4 buyer wallets in a single atomic Jito bundle, ensuring the dev buy and initial purchases land in the same block.
Is my private key safe when using the pumpfun api?
With the pumpfun api's client-side Trading endpoint, you sign transactions locally — your private keys never leave your machine. The Lightning API is designed for server-side bots where you control the runtime environment and key storage.
Start Building with the PumpFun API
The complete pumpfun api and developer SDK for pump.fun. Join our community for support and announcements.