This script demonstrates how to get a quote for a swap, build the swap, and then send the swap using the Jupiter V1 API.
- Node.js (v16 or higher)
- npm (v10 or higher)
- Solana Wallet Private Key
- Helius RPC API key
- Jupiter V1 API Key (optional) - get it here
- Clone the repository
git clone https://github.com/Jupiter-DevRel/typescript-examples.git- Navigate to the
swap/quote-build-senddirectory
cd swap/quote-build-send- Install the dependencies
npm install- Run the script
npm run example