Jupiter Aggregator (jup.ag)
The best swap aggregator on Solana. Built for smart traders who like money.
This repo is Jupiter Core SDK.
For Node, or build your own lib, use Jupiter Core Example
The quickest way to integrate Jupiter with your UI, use Jupiter React Hook instead
Checkout Jupiter React Native Example
Yarn
yarn add @jup-ag/core
NPM
npm install @jup-ag/core
Initialize and load Jupiter instances
Get routeMap, which maps each tokenMint and their respective tokenMints that are swappable
Request Jupiter to compute the requested inputToken and outputToken, to query possible pairs, routes, amounts, slippage and more information.