Token SWAP API on Solana network using Jito Bundle and Jupiter v6 swap API.
Last updated Jun 23, 2026
27
Stars
7
Forks
0
Issues
0
Stars/day
Attention Score
15
Language breakdown
No language data available.
▸ Files
click to expand
README
Jupiter v6 SWAP API using Jito Bundle
Environment Variables
To run this project, you will need to add the following environment variables to your .env file
QUIKNODE_RPC = "https://example.solana-mainnet.quiknode.pro/..."
JITORPCURL = "https://mainnet.block-engine.jito.wtf/api/v1/bundle"
JUPITERV6API = "https://quote-api.jup.ag/v6"
PUBLIC_KEY = "YOUR WALLET PUBLIC KEY HERE"
PRIVATE_KEY = "YOUR WALLET PRIVATE KEY HERE"
BIRDEYEAPI_KEY = "YOUR BIRD EYE KEY HERE (NOT FREE)"
Run Locally
Clone the project
git clone https://github.com/gungho0619/jupiter-v6-swap-api.git
Go to the project directory
cd jupiter-v6-swap-api
Install dependencies
npm install
Start the server
npm run dev
or
yarn dev
API Reference
SWAP Token
POST
://localhost:5000/swapToken
| Parameter | Type | Example | | :-------- | :------- | :------------------------- | | inputMint | string | So11111111111111111111111111111111111111112 | | outputMint | string | 5XyKkFaJpAmsH4Tf2EFj3S61W3hC5cJhxNZQQ5h1pump | | amount | number | 0.001 | | slippageBps | number | 2000 |

Tech Stack
Node, Express, TypeScript, Jupiter, Jito_Bundle, @solana/web3
🔗 More in this category