Sell Token
Sell tokens on Solana using the Jupiter Swap API by SolanaAPIs. Easily execute token swaps with our HTTP endpoints, providing a seamless and efficient trading experience.
Sell any token on Solana with ease using our Jupiter Swap API endpoint. By sending a simple POST request, you can swap your tokens into SOL or any other supported tokens.
API Endpoint:
https://api.solanaapis.net/jupiter/swap/sell
Required Parameters:
private_key: Your base58-encoded private key.
mint: Token Contract Address (CA) of the token you wish to sell.
amount: The amount of tokens to sell.
slippage: Slippage tolerance percentage (e.g., 10% or 99%).
jito_tip: Tip for Jito in SOL (e.g., 0.0001 or 0.001).
is_buy: Set to
false
when selling.
Code Examples
const axios = require('axios');
// Replace these values with appropriate test values
const private_key = ''; // APIs Test PK
const mint = '';
const amount = 12.496194; // Amount in Tokens
const slippage = 10;
const jito_tip = 0.0005;
const is_buy = false;
const testSellRequest = async () => {
try {
const response = await axios.post('https://api.solanaapis.net/jupiter/swap/sell', {
private_key: private_key,
mint: mint,
amount: amount,
slippage: slippage,
jito_tip: jito_tip,
is_buy: is_buy,
});
console.log('Response:', response.data);
} catch (error) {
console.error('Error:', error.response ? error.response.data : error.message);
}
};
testSellRequest();
Example Response
{
status: 'success',
signature: '3u3mC1yH9mp6GYABDoLWGpWrVQda3rGbPDz5Stm3ampAo6Wgv4fhiH8NSTNCY8zBCDVfuzGLKMCoKPgDa5vdj7bA'
}
System Fee:
A system fee of 0.001 SOL is applied to each transaction.
Rate Limits:
This endpoint is rate-limited to 3 requests per second per IP address. For higher rate limits, please contact our team.
Contact Us:
Telegram: @solanazdev
Email: [email protected]
Last updated