This package has been deprecated

Author message:

Jupiter core library is deprecated. The new API client is @jup-ag/api https://docs.jup.ag/api-v6

@jup-ag/core
TypeScript icon, indicating that this package has built-in type declarations

4.0.0-beta.21 • Public • Published

Jupiter Aggregator Core typescript library

1*cXNgzu0Pvj4HwOLw4Akwqg

Jupiter Aggregator (jup.ag)
The best swap aggregator on Solana. Built for smart traders who like money.


This repo is Jupiter Core SDK.

Example

For Node, or build your own lib, use Jupiter Core Example

Integrate with React instead?

The quickest way to integrate Jupiter with your UI, use Jupiter React Hook instead

React Native?

Checkout Jupiter React Native Example

Installation

Yarn

yarn add @jup-ag/core

NPM

npm install @jup-ag/core



Jupiter.load()

Initialize and load Jupiter instances

jupiter.getRouteMap()

Get routeMap, which maps each tokenMint and their respective tokenMints that are swappable

jupiter.computeRoutes()

Request Jupiter to compute the requested inputToken and outputToken, to query possible pairs, routes, amounts, slippage and more information.

Readme

Keywords

none

Package Sidebar

Install

npm i @jup-ag/core

Weekly Downloads

2,305

Version

4.0.0-beta.21

License

MIT

Unpacked Size

885 kB

Total Files

94

Last publish

Collaborators

  • thimerosa
  • jjsb
  • hjchan
  • arowana
  • siong
  • dicksonp
  • zhengyutay