Pump.fun Testnet Environment

We've built a complete testnet infrastructure for Pump.fun that enables developers to test their products, integrations, and ideas before deploying to mainnet. This is the same critical infrastructure that every major blockchain provides—now available for the Pump.fun ecosystem.

Why a Testnet?
Testing in production is risky and expensive. Our testnet provides a safe, isolated environment where developers can experiment, iterate, and validate their work without any real-world consequences.

Network Information

Solana RPC Endpoint

Connect to our testnet using the following RPC endpoint:

https://testnet-rpc.pump.fun

WebSocket Endpoint

wss://testnet-ws.pump.fun

Testnet Faucet

Get free testnet SOL to start building:

https://faucet.pump.fun

Quick Start

Connect to the testnet in your application:

// Using @solana/web3.js import { Connection, clusterApiUrl } from '@solana/web3.js'; const connection = new Connection( 'https://testnet-rpc.pump.fun', 'confirmed' ); // Test the connection const version = await connection.getVersion(); console.log('Connected to testnet:', version);

Key Features

Full Pump.fun API

Complete mirror of production APIs for token creation, trading, and all platform features.

Free Test Tokens

Unlimited testnet SOL and tokens for development and testing.

Reset Friendly

Network resets periodically to maintain clean state—perfect for testing.

Production Parity

Identical behavior to mainnet so your tests are reliable.

Sandbox Environment

The sandbox provides interactive examples and templates for building on Pump.fun. Test your ideas and see them work in real-time before deploying to production.

Token Launch Example

Here's a complete example of creating and launching a token on the Pump.fun testnet:

// Import required libraries import { Connection, Keypair, PublicKey } from '@solana/web3.js'; import { PumpFunSDK } from '@pumpfun/sdk'; // Connect to testnet const connection = new Connection('https://testnet-rpc.pump.fun'); const wallet = Keypair.generate(); // Create test wallet // Initialize SDK const sdk = new PumpFunSDK({ connection, wallet, environment: 'testnet' }); // Create a new token const tokenConfig = { name: 'My Test Token', symbol: 'TEST', description: 'Testing token creation on Pump.fun testnet', initialSupply: 1000000, metadata: { image: 'https://your-image-url.com/token.png', twitter: '@yourproject', website: 'https://yourproject.com' } }; try { // Launch the token const result = await sdk.createToken(tokenConfig); console.log('Token created successfully!'); console.log('Token Address:', result.tokenAddress); console.log('Transaction:', result.signature); // Add liquidity const liquidityResult = await sdk.addLiquidity({ tokenAddress: result.tokenAddress, solAmount: 10, // 10 SOL tokenAmount: 100000 // 100k tokens }); console.log('Liquidity added:', liquidityResult.signature); } catch (error) { console.error('Error:', error); }

Trading Bot Example

Build and test trading strategies safely on testnet:

// Trading bot example const bot = { // Monitor token price watchToken: async (tokenAddress) => { const price = await sdk.getTokenPrice(tokenAddress); console.log(`Current price: ${price.solPerToken} SOL`); return price; }, // Execute buy order buy: async (tokenAddress, solAmount) => { const tx = await sdk.swap({ from: 'SOL', to: tokenAddress, amount: solAmount, slippage: 0.05 // 5% slippage tolerance }); console.log('Buy executed:', tx); return tx; }, // Execute sell order sell: async (tokenAddress, tokenAmount) => { const tx = await sdk.swap({ from: tokenAddress, to: 'SOL', amount: tokenAmount, slippage: 0.05 }); console.log('Sell executed:', tx); return tx; } }; // Run the bot const TOKEN_ADDRESS = 'YOUR_TOKEN_ADDRESS'; setInterval(async () => { const price = await bot.watchToken(TOKEN_ADDRESS); // Simple strategy: buy if price drops below threshold if (price.solPerToken < 0.01) { await bot.buy(TOKEN_ADDRESS, 1); // Buy with 1 SOL } }, 5000); // Check every 5 seconds
Sandbox Benefits:
• Test token launches without real money
• Validate trading strategies and bots
• Debug integrations in a safe environment
• Iterate quickly with instant feedback
• No risk to production or real assets

Documentation

Complete documentation for integrating with the Pump.fun testnet.

Getting Started

  1. Request testnet SOL from the faucet
  2. Configure your application to use testnet endpoints
  3. Start building and testing

API Reference

The testnet API mirrors production with identical endpoints and responses.

Authentication

No API key required for testnet. Use your Solana wallet for transaction signing.

Rate Limits

Testnet has generous rate limits to support development:

Example Projects

Real-world examples you can use as starting points for your projects.

Token Launch Platform

Build a frontend for launching tokens on Pump.fun

Portfolio Tracker

Track token holdings and performance

Automated Market Maker

Create liquidity provision strategies

Analytics Dashboard

Visualize token metrics and trading activity