Easy Pump.Fun API BUY SELL

Easy Pump Fun API Documentation



Easiest way to buy and sell on pump.fun! Copy Paste and Run. Focus on your trading algorithm and let Easy Pump Fun handle the rest. Designed with simplicity in mind, it allows you to execute swaps effortlessly just by simply calling the endpoint and providing the necessary parameters. API automatically configures RPC nodes (free for all user), manages all program addresses and token programs, opens and closes token accounts, connects to the bonding curve, handles Compute Units and microLamports, and more.

ZERO LOG policy ensures that your data stays yours. No tracking. No storage. Ever. To further enhance security, Easy Pump Fun features end-to-end encryption for all requests, IP whitelisting for controlled access (available for subscription plans only) and more.

FREE RPC NODES. No setup is required. Free users get access to shared RPC nodes, which means the same nodes are utilized by multiple free-tier users. This makes it possible to offer the service at no cost. These nodes can sometimes experience slower response times, especially during peak usage. But it's still faster than https://api.mainnet-beta.solana.com

Subscribers get access to dedicated RPC node exclusive to individual account. So there are no bottlenecks caused by other users. Ensuring faster and more reliable performance. Dedicated nodes are automatically assigned to subscribers when they upgrade. No configuration is needed.

PREMIUM API provides advanced features and benefits including dedicated RPC nodes, even faster transaction processing, token sniping functionality, API uptime guarantees, higher rate limits, access to private beta features, priority support and more. To learn more about these features and how to get started, contact support@easypumpfun.com.


And for any other questions feel free to contact support@easypumpfun.com

1. Buy

Method: POST

https://api.easypumpfun.com/buy

Python
Node.js

Request Example


    import requests

    url = "https://api.easypumpfun.com/buy"
    data = {
        "keypair": "2oPQn9z1OaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXNwt02aoMW7",
        "mint": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
        "sol_in": 0.5,
        "slippage": 2,
        "sol_fee": 0.0001
    }

    response = requests.post(url, json=data)

    print("Status Code:", response.status_code)
    print("Response:", response.json())
            

Request Example


    const axios = require('axios');

    const url = "https://api.easypumpfun.com/buy";
    const data = {
        keypair: "2oPQn9z1OaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXNwt02aoMW7",
        mint: "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
        sol_in: 0.5,
        slippage: 2,
        sol_fee: 0.0001
    };

    axios.post(url, data).then(response => {
            console.log("Status Code:", response.status);
            console.log("Response:", response.data);
    });
            

2. SELL

Method: POST

https://api.easypumpfun.com/sell

Python
Node.js

Request Example


    import requests

    url = "https://api.easypumpfun.com/sell"
    data = {
        "keypair": "2oPQn9z1OaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXNwt02aoMW7",
        "mint": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
        "percentage": 75,
        "slippage": 2,
        "sol_fee": 0.0001
    }

    response = requests.post(url, json=data)

    print("Status Code:", response.status_code)
    print("Response:", response.json())
            

Request Example


    const axios = require('axios');

    const url = "https://api.easypumpfun.com/sell";
    const data = {
        keypair: "2oPQn9z1OaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXNwt02aoMW7",
        mint: "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
        percentage: 75,
        slippage: 2,
        sol_fee: 0.0001
    };

    axios.post(url, data).then(response => {
            console.log("Status Code:", response.status);
            console.log("Response:", response.data);
    });
            

3. Responses

3.1 Response status code

    Status Code: 200

A response status code 200 means the API is functioning correctly and handling requests as expected. Any other status code indicates an issue with the API. Even if the status code is 200 the transaction can still fail. This indicates that the API is functioning correctly but the transaction failed due to an incorrect setup or another issue.


3.2 Response Body


    { 
        'failed': {
            'message': None,
            'status': False
        },
        'signature': '4ci6dTW6D6ocnKiT8qzD9Bg89wpWx5KeXW2h8JTqeZfk6zKF81AbYUnKuEcTQmdma7Q2mBnutZEW89ZCYpADfzo1'
    }
        

failed - This field provides information about whether the transaction failed. It contains two subfields.

signature - Hash for the completed transaction. If the transaction fails, this field might still be present if the API successfully processed the request but encountered an issue with the transaction completion.


4. Payload explained


    #FOR BUY
    data = {
        "keypair": "2oPQn9z1OaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXNwt02aoMW7",
        "mint": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
        "sol_in": 0.5,
        "slippage": 2,
        "sol_fee": 0.0001
    }
            

Token CA: 9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump

Buy token for: 0.5 SOL

Slippage: 2%

Fees cost: 0.0001 SOL



    #FOR SELL
    data = {
        "keypair": "2oPQn9z1OaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXNwt02aoMW7",
        "mint": "9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump",
        "percentage": 100,
        "slippage": 2,
        "compute": 100_000,
        "mlamports": 2_000_000
    }
            

Token CA: 9BB6NFEcjBCtnNLFko2FqVQBq8HHM13kCyYcdQbgpump

Sell percentage of token holdings: 100%

Slippage: 2%

Compute Units: 100_000

microLamports: 2_000_000


4.1 Wallet and Token


4.2 SOL amount


All the parameters listed above are required and the API cannot function without them. When determining transaction fee costs you have two options. Either set the fee automatically by specifying the desired amount in SOL. Or configure it manually by providing the Compute Units and microLamports. One of these two methods must be used. Otherwise the transaction cannot be completed without setting up the fees


4.3 Transaction fees

Easy Pump Fun API doesn't charge you any fees. However for every transaction you'll pay an additional 1% of the transaction value to Pump Fun (nothing you can do about it). Plus if you're buying a token for the first time a little bit more than 0.002 SOL will be charged to create the token account in your wallet (also nothing you can do about it).


Copyright © 2025 Easy Pump Fun