This script demonstrates how to get swap all tokens to JUP using the Ultra API.
- Node.js (v16 or higher)
- npm (v10 or higher)
- Solana Wallet Public Address
- Solana Wallet Private Key
- Clone the repository
git clone https://github.com/Jupiter-DevRel/typescript-examples.git- Navigate to the
ultra/sweeperdirectory
cd ultra/sweeper- Install the dependencies
npm install- Run the script
npm run example