JavaScript API Client for Jupiter V6
Table of Contents
Installation
To use the [Your Website] 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
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);
Now, you can call methods provided by the API client to interact with [Your Website]'s API. For example:
jupiterQuoteApi.quoteGet({
inputMint: "So11111111111111111111111111111111111111112",
outputMint: "EPjFWdd5AufqSSqeM2qN1xzybapC8G4wEGGkZwyTDt1v",
amount: "100000000",
})
Examples
Checkout the example in the repo. link