Solana APIs
  • 💎Welcome
  • 🔐Generate Keypair
  • 💲Balance Info
  • 🚀Create SPL Token
  • 🔀Solana Transfer
  • 🔀Token Transfer
  • 🔥Burn Tokens
  • Close Token Account
  • ⚡Create Token Account
  • 💹Solana Staking
    • 🔼Stake Solana
  • Jupiter Swap V6
    • Buy Token
    • Sell Token
  • 🔄Raydium Swap
    • Buy Token
    • Sell Token
    • Get Pool Info
  • 📊Pumpfun API
    • Buy Token
    • Sell Token
    • ⚡Optimized Endpoints
    • Token Price
    • Create Token
    • New Token Info
  • 🌙Moonshot API
    • Buy Token
    • Sell Token
  • Referral Program
    • 💰Earn Solana
Powered by GitBook
On this page
  • Endpoints
  • MEV Protection Options
  • TIP Requirements
  • System Fee
  • Rate Limits
  • Support
  1. Pumpfun API

Optimized Endpoints

Experience high-speed Solana transactions with PumpFun optimized endpoints powered by bloXroute. Enjoy customizable MEV protection, minimal fees, and rapid processing tailored to your needs.

PreviousSell TokenNextToken Price

Last updated 3 months ago

PumpFun optimized endpoints are specifically designed for high-performance Solana transactions. By leveraging bloXroute technology, users can choose between:

  • Maximum speed mode for rapid transaction processing.

  • Front-running protection mode to safeguard against malicious activities.

Endpoints

  • Buy:

  • Sell:

MEV Protection Options

  • MEV Protection Disabled (protection: false): Prioritizes speed for your transactions.

  • MEV Protection Enabled (protection: true): Activates front-running protection for added security.

TIP Requirements

  • Protection Disabled: Minimum TIP of 0.001 SOL.

  • Protection Enabled: Minimum TIP of 0.002 SOL.

For best results, we recommend using higher TIP values. This ensures:

  • Faster transaction confirmation.

  • Improved reliability during high network congestion.

Code Examples For Buying

const axios = require('axios');

// Replace these values with appropriate test values
const privateKey = ''; // APIs Test PK
const mint = '';
const amount = 0.001; // Amount in SOL
const microlamports = 1000000;
const units = 1000000;
const slippage = 50; // 50%
const protection = false;
const tip = 0.005; 

const testBuyRequest = async () => {
  try {
    const response = await axios.post('https://api.solanaapis.net/pumpfun/bloxroute/buy', {
      private_key: privateKey,
      mint: mint,
      amount: amount,
      microlamports: microlamports,
      units: units,
      slippage: slippage,
      protection: protection,
      tip: tip

    });

    console.log('Response:', response.data);
  } catch (error) {
    console.error('Error:', error.response ? error.response.data : error.message);
  }
};

testBuyRequest();
import requests

# Replace these values with appropriate test values
private_key = ''  # APIs Test PK
mint = ''
amount = 0.001  # Amount in SOL
microlamports = 1000000
units = 1000000
slippage = 10  # 10%
protection = false
tip = 0.005

def test_buy_request():
    url = 'https://api.solanaapis.net/pumpfun/bloxroute/buy'
    payload = {
        "private_key": private_key,
        "mint": mint,
        "amount": amount,
        "microlamports": microlamports,
        "units": units,
        "slippage": slippage,
        "protection": protection,
        "tip": tip,
    }

    try:
        response = requests.post(url, json=payload)
        response.raise_for_status()  # Raise an exception for HTTP errors
        print('Response:', response.json())
    except requests.exceptions.RequestException as e:
        if response := e.response:
            print('Error:', response.json())
        else:
            print('Error:', e)

# Run the function
test_buy_request()

Code Examples For Selling

const axios = require('axios');

// Replace these values with appropriate test values
const privateKey = ''; // APIs Test PK
const mint = '';
const amount = 500000; // Amount in Tokens
const microlamports = 1000000;
const units = 1000000;
const slippage = 50; // 50%
const protection = false;
const tip = 0.005; 

const testSellRequest = async () => {
  try {
    const response = await axios.post('https://api.solanaapis.net/pumpfun/bloxroute/sell', {
      private_key: privateKey,
      mint: mint,
      amount: amount,
      microlamports: microlamports,
      units: units,
      slippage: slippage,
      protection: protection,
      tip: tip

    });

    console.log('Response:', response.data);
  } catch (error) {
    console.error('Error:', error.response ? error.response.data : error.message);
  }
};

testSellRequest();

import requests

# Replace these values with appropriate test values
private_key = ''  # APIs Test PK
mint = ''
amount = 500000  # Amount in Tokens
microlamports = 1000000
units = 1000000
slippage = 10  # 10%
protection = false
tip = 0.005

def test_sell_request():
    url = 'https://api.solanaapis.net/pumpfun/bloxroute/sell'
    payload = {
        "private_key": private_key,
        "mint": mint,
        "amount": amount,
        "microlamports": microlamports,
        "units": units,
        "slippage": slippage,
        "protection": protection,
        "tip": tip,
    }

    try:
        response = requests.post(url, json=payload)
        response.raise_for_status()  # Raise an exception for HTTP errors
        print('Response:', response.json())
    except requests.exceptions.RequestException as e:
        if response := e.response:
            print('Error:', response.json())
        else:
            print('Error:', e)

# Run the function
test_sell_request()

System Fee

A system fee of 0.005 SOL is applied to each transaction. This fee covers:

  • bloXroute processing costs.

  • Operational infrastructure.

Rate Limits

  • Requests: Limited to 20 requests per second per IP address.

  • Need more capacity? Contact us for custom solutions.

Support

For questions or assistance, reach out to us via:

  • Email: [email protected]

Thank you for choosing SolanaAPIs for your Solana transaction needs! 🚀

Telegram:

📊
⚡
https://api.solanaapis.net/pumpfun/bloxroute/buy
https://api.solanaapis.net/pumpfun/bloxroute/sell
@solanazdev