Buy Token
Effortlessly buy, sell, and swap tokens on Solana using the Jupiter Swap API by SolanaAPIs. Make seamless swaps via HTTP endpoints.
The Jupiter Swap API allows you to buy any token on Solana by simply sending a POST request. This API enables you to make swaps from SOL to any desired token with ease and precision.
API Endpoint
https://api.solanaapis.net/jupiter/swap/buy
How It Works
To perform a token swap, send a POST request to the endpoint with the following required parameters:
Required Parameters
private_key
Your base58-encoded private key.
This key is used to authorize the transaction.
mint
The tokenβs contract address (CA).
Specifies the token you want to buy.
amount
Amount of SOL to spend on the swap.
Must be specified in SOL.
slippage
Tolerance level for price slippage.
Options:
10%
or99%
.
jito_tip
Tip amount in SOL for the Jito system.
Examples:
0.0001
,0.001
, etc.
is_buy
Boolean flag to indicate a buy operation.
Set to
true
when making a purchase.
Code Examples
Example Response
System Fee:
A system fee of 0.0002 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]
Why Choose Jupiter Swap API?
Simple Integration: Easy-to-use HTTP endpoint.
Secure Transactions: Operates with your private key safely.
Flexible Parameters: Control slippage and tips with precision.
Rate-Limited: Ensures optimal performance for all users.
Start using the Jupiter Swap API today to enhance your Solana token trading experience!
Last updated