We no longer maintain this repo. For the latest API, check out Jupiter Swap API.
This is the same code that we use to host our Jupiter API on fly.io.
pnpm install
RPC_URL=xxxxxxx pnpm start
- Install flyctl: https://fly.io/docs/hands-on/install-flyctl/
- Sign up on fly.io: https://fly.io/docs/hands-on/sign-up/
- On the project directory:
fly launch
- You don't need the Postgresql database
- You don't need the Redis cache
- Update the
RPC_URL
to your own RPC infly.toml
- Then,
fly deploy
- You will need a more powerful machine to run the API:
fly scale vm performance-2x
- you can edit the number of instances to run in production according to number of cores in scripts/pm2.config.js.