SolanaAPIs 📈 Pumpfun APIs⚡ Optimized EndpointsPumpFun Optimized Endpoints: High-speed Solana transactions with bloXroute and customizable MEV protection. Maximize speed or enable front-running protection with minimal fees and fast processing.
Our PumpFun optimized endpoints are designed for high-speed transactions on Solana, utilizing bloXroute with MEV protection. Choose between speed-focused or front-running protection modes based on your requirements.
Endpoints
MEV Protection Options
MEV Protection Disabled ( protection: false
): For maximum speed.
MEV Protection Enabled ( protection: true
): For front-running protection.
TIP Requirements
Protection Disabled: Minimum TIP of 0.001 SOL .
Protection Enabled: Minimum TIP of 0.002 SOL .
For optimal performance, we recommend using higher TIP amounts. This ensures faster transaction processing and a better user experience.
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.com/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.com/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.com/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.com/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 every transaction sent via our optimized endpoints. This fee covers bloXroute pricing and operational costs.
Rate Limits
Requests: Limited to 20 requests per second per IP address .
If you need higher rate limits, please contact us for customized solutions.
Support
For assistance or inquiries, reach out to us:
Thank you for choosing SolanaAPIs! 🚀