https://github.com/axioris/jupiter-swap-api
Effortlessly integrate token swaps on the Solana blockchain with our API leveraging Jito Bundle optimization and Jupiter v6 Swap API for lightning-fast, efficient transactions.
https://github.com/axioris/jupiter-swap-api
api dextools jito-bundle jupiter nodejs solana swap typescript
Last synced: about 2 months ago
JSON representation
Effortlessly integrate token swaps on the Solana blockchain with our API leveraging Jito Bundle optimization and Jupiter v6 Swap API for lightning-fast, efficient transactions.
- Host: GitHub
- URL: https://github.com/axioris/jupiter-swap-api
- Owner: axioris
- Created: 2025-01-16T07:35:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-16T07:59:18.000Z (over 1 year ago)
- Last Synced: 2025-08-11T07:29:44.744Z (10 months ago)
- Topics: api, dextools, jito-bundle, jupiter, nodejs, solana, swap, typescript
- Language: TypeScript
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Jupiter 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"
PRIVATE_KEY = "YOUR WALLET PRIVATE KEY HERE"
```
## Run Locally
Clone the project
```bash
git clone https://github.com/axioris/jupiter-swap-api.git
```
Go to the project directory
```bash
cd jupiter-swap-api
```
Install dependencies
```bash
npm install
```
Start the server
```bash
npm run dev
or
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
## Feedback
If you have any feedback, please reach out to us at [dane.foster.collins@gmail.com](mailto:dane.foster.collins@gmail.com) or open an issue on our [GitHub repository](https://github.com/axioris/jupiter-swap-api/issues).
## Contact
For any questions or support, please open an issue or contact me.