6.0.20-test • Published 29 days ago

@jup-ag/api v6.0.20-test

Weekly downloads
-
License
MIT
Repository
-
Last release
29 days ago

JavaScript API Client for Jupiter V6

Table of Contents

Installation

To use the Jupiter API client, you need to have Node.js and npm (Node Package Manager) installed. Then, you can install the package using npm:

npm install @jup-ag/api

Developer to publish

  • bump version
  • pnpm build
  • npm publish --access public

Usage

To start using the API client, you need to require it in your Node.js project:

import { createJupiterApiClient } from '@jup-ag/api';

const jupiterQuoteApi = createJupiterApiClient(config); // config is optional

Now, you can call methods provided by the API client to interact with Jupiter's API. For example:

jupiterQuoteApi.quoteGet({
    inputMint: "So11111111111111111111111111111111111111112",
    outputMint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
    amount: "100000000",
    // platformFeeBps: 10,
    // asLegacyTransaction: true, // legacy transaction, default is versoined transaction
})

Examples

Checkout the example in the repo. link

Using Custom URLs

You can set custom URLs via the configuration for any self-hosted Jupiter APIs, like the V6 Swap API or the paid hosted APIs

import { createJupiterApiClient } from '@jup-ag/api';

const config = {
    basePath: 'https://hosted.api'
};
const jupiterQuoteApi = createJupiterApiClient(config);

Paid Hosted APIs

You can also check out some of the paid hosted APIs.

6.0.20-test

29 days ago

6.0.19

2 months ago

6.0.18

2 months ago

6.0.17

2 months ago

6.0.16

2 months ago

6.0.15

2 months ago

6.0.14

2 months ago

6.0.13

2 months ago

6.0.12

2 months ago

6.0.11

3 months ago

6.0.10

4 months ago

6.0.9-test.0

5 months ago

6.0.9

5 months ago

6.0.8

5 months ago

6.0.7

5 months ago

6.0.1

9 months ago

6.0.0

9 months ago

6.0.3

9 months ago

6.0.2

9 months ago

6.0.5

8 months ago

6.0.4

9 months ago

6.0.6

8 months ago

3.0.4-alpha.0

1 year ago

4.0.0

1 year ago

4.0.1-alpha.0

1 year ago

3.0.3

2 years ago

3.0.2

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago