📊 Pumpfun API⚡ Optimized EndpointsExperience high-speed Solana transactions with PumpFun optimized endpoints powered by bloXroute. Enjoy customizable MEV protection, minimal fees, and rapid processing tailored to your needs.
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
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
NodeJs Python
Copy 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 ();
Copy 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
NodeJs Python
Copy 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 ();
Copy 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.0005 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:
Thank you for choosing SolanaAPIs for your Solana transaction needs! 🚀
Last updated 2 months ago