An implementation of the Jupiter Swap
The code in this repo is a reference imeplementation, it's not built for direct usage.
- Get an API key from Helius - https://www.helius.dev/
- Add your key to the the HTML OR create-solana-dapp implementation
- For create-solana-dapp, you'll need NPM. The swap implementation is at
localhost:3000/swap
I recommend watching the video linked above to get an idea of the layout of the code and how the Jupiter swap API works.
Plain HTML file that imports the terminal via CDN.
Uses the create-solana-dapp template to create a new project, then imports the terminal via CDN.
Run these in your terminal:
git clone https://github.com/AlmostEfficient/jupiter-swap/
cd create-solana-dapp
cd web
npm i
npm run dev
Open localhost:3000
in your browser. The swap is at localhost:3000/swap