Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@jup-ag/api
Advanced tools
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
process.env.PRIVATE_KEY
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 versioned transaction
})
Checkout the example in the repo. link
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);
You can also check out some of the paid hosted APIs.
FAQs
## Generate typescript types from swagger schema
The npm package @jup-ag/api receives a total of 12,102 weekly downloads. As such, @jup-ag/api popularity was classified as popular.
We found that @jup-ag/api demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.