https://github.com/spongejump/jupiter-v6-swap-api
Token SWAP API on Solana network using Jito Bundle and Jupiter v6 swap API.
https://github.com/spongejump/jupiter-v6-swap-api
api birdeye dextools jito-bundle jupiter nodejs solana swap typescript
Last synced: 29 days ago
JSON representation
Token SWAP API on Solana network using Jito Bundle and Jupiter v6 swap API.
- Host: GitHub
- URL: https://github.com/spongejump/jupiter-v6-swap-api
- Owner: spongejump
- Created: 2024-12-16T06:13:28.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2025-04-03T10:07:56.000Z (29 days ago)
- Last Synced: 2025-04-03T11:24:13.039Z (29 days ago)
- Topics: api, birdeye, dextools, jito-bundle, jupiter, nodejs, solana, swap, typescript
- Language: TypeScript
- Homepage:
- Size: 104 KB
- Stars: 18
- Watchers: 1
- Forks: 5
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
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/..."
JITO_RPC_URL = "https://mainnet.block-engine.jito.wtf/api/v1/bundle"
JUPITER_V6_API = "https://quote-api.jup.ag/v6"
PUBLIC_KEY = "YOUR WALLET PUBLIC KEY HERE"
PRIVATE_KEY = "YOUR WALLET PRIVATE KEY HERE"
BIRD_EYE_API_KEY = "YOUR BIRD EYE KEY HERE (NOT FREE)"
```## Run Locally
Clone the project
```bash
git clone https://github.com/gungho0619/jupiter-v6-swap-api.git
```Go to the project directory
```bash
cd jupiter-v6-swap-api
```Install dependencies
```bash
npm install
```Start the server
```bash
npm run devor
yarn dev
```
## API Reference
#### SWAP Token
POST ```http://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
## Badges
[](https://choosealicense.com/licenses/mit/) [](https://opensource.org/licenses/)
## Authors
- [Flamingo](https://www.github.com/gungho0619)
## Feedback
If you have any feedback, please reach out to me via [mail]([email protected]) or [telegram](https://t.me/gungho0619)