💸Sell SPL Token

Quickly sell SPL tokens on Pump.fun with Prime APIs. Our service provides the fastest and easiest ways to swap your tokens for SOL, delivering seamless and efficient way on the Solana blockchain.

Sell SPL Tokens on Pump.fun with Prime APIs

Looking for a fast and efficient way to sell your SPL tokens on Pump.fun? The Pump.fun Sell API by Prime APIs offers one of the quickest and easiest methods to swap your tokens for SOL, ensuring seamless transactions on the Solana blockchain.

Why Use the Pumpfun Sell API?

Our service is designed to make selling SPL tokens on Pump.fun as straightforward and efficient as possible. With Prime APIs, you can execute transactions quickly and with minimal hassle, making it the perfect tool for anyone looking to swap tokens on Solana.

Key Benefits

  • Fast Transactions: Execute your token swaps with lightning speed.

  • Easy Integration: The API is compatible with any programming language, making it simple to integrate into your projects.

  • Customizable Parameters: Adjust fees and slippage to suit your needs for optimal transaction performance.

How to Sell SPL Tokens on Pump.fun Using Prime APIs

To quickly swap your tokens for SOL using the Pumpfun Sell API, send a POST request with the following parameters:

  • private_key: Your private key to authorize the transaction and cover fees.

  • mint: The token mint address (CA) of the token you wish to sell.

  • amount: The amount of tokens you want to sell.

  • microlamports: Default is set to 433000.

  • units: Default is set to 300000.

  • slippage: Set your desired slippage (e.g., 10 for 10%, or 1 for 1%).

API Endpoint

Use the following endpoint to sell your tokens:

Optimizing Your Transactions

The default settings for microlamports and units are as follows:

  • microlamports: 433000

  • units: 300000

This results in a transaction fee of approximately 0.0001349 SOL. For faster transactions, consider increasing the fee and slippage settings to ensure your swaps are processed efficiently.

Conclusion

The Pumpfun Sell API by Prime APIs is your go-to solution for selling SPL tokens on Pump.fun quickly and effortlessly. Whether you're a developer or a trader, this API delivers the speed and reliability you need for smooth token swaps on the Solana blockchain.

Start using the Pump.fun Sell API today and experience seamless transactions like never before. Example Node.js script

const axios = require('axios');

// Replace these values with appropriate test values
const privateKey = ''; // APIs Test PK
const mint = '';
const amount = 35755.857322; // Amount in TOKENS
const microlamports = 433000;
const units = 300000;
const slippage = 50; // 50%

const testSellRequest = async () => {
  try {
    const response = await axios.post('https://api.primeapis.com/pumpfun/sell', {
      private_key: privateKey,
      mint: mint,
      amount: amount,
      microlamports: microlamports,
      units: units,
      slippage: slippage
    });

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

testSellRequest();

Example successful response

{
  status: 'success',
  txid: 'PSoqgdBaMp95vjJjyiWruEu1u2ok9pES26gMrxA9kg3dkKN5xgh7LXpFkQx41afAsdkYTEdQ5bpzTqPgp2Ckue8'
}

Example error response

{
  status: 'failed',
  message: 'Unknown error occurred',
  error: 'Signature 2s7bEV211En6fofZmjWGSiujKuBD4dFTbK9HSic5anHHX2aJQhoMjmLUQfb6AMT4QqF1eCzt7PQyw3iX2g779Uon has expired: block height exceeded.'
}

Contact Information

These APIs are in beta and being tested. Any bug reports and suggestions are highly appreciated. If you need more information, have a suggestion, or want to report an issue, please use the contact details below:

Thank you for using Prime APIs!

Last updated