New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@jup-ag/api

Package Overview
Dependencies
Maintainers
6
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jup-ag/api - npm Package Compare versions

Comparing version 6.0.21 to 6.0.22

153

dist/index.d.ts
/**
* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*

@@ -20,3 +20,3 @@ * The version of the OpenAPI document: 6.0.0

password?: string;
apiKey?: string | ((name: string) => string);
apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);

@@ -36,3 +36,3 @@ headers?: HTTPHeaders;

get password(): string | undefined;
get apiKey(): ((name: string) => string) | undefined;
get apiKey(): ((name: string) => string | Promise<string>) | undefined;
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;

@@ -188,3 +188,3 @@ get headers(): HTTPHeaders | undefined;

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*

@@ -233,3 +233,3 @@ * The version of the OpenAPI document: 6.0.0

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*

@@ -274,3 +274,3 @@ * The version of the OpenAPI document: 6.0.0

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*

@@ -320,3 +320,3 @@ * The version of the OpenAPI document: 6.0.0

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*

@@ -359,3 +359,3 @@ * The version of the OpenAPI document: 6.0.0

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*

@@ -434,3 +434,3 @@ * The version of the OpenAPI document: 6.0.0

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*

@@ -474,3 +474,3 @@ * The version of the OpenAPI document: 6.0.0

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*

@@ -499,3 +499,3 @@ * The version of the OpenAPI document: 6.0.0

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*

@@ -560,2 +560,8 @@ * The version of the OpenAPI document: 6.0.0

*
* @type {number}
* @memberof QuoteResponse
*/
computedAutoSlippage?: number;
/**
*
* @type {PlatformFee}

@@ -600,3 +606,3 @@ * @memberof QuoteResponse

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*

@@ -664,3 +670,3 @@ * The version of the OpenAPI document: 6.0.0

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*

@@ -674,6 +680,58 @@ * The version of the OpenAPI document: 6.0.0

*/
/**
* The compute unit price to prioritize the transaction, the additional fee will be `computeUnitLimit (1400000) * computeUnitPriceMicroLamports`. If `auto` is used, Jupiter will automatically set a priority fee and it will be capped at 5,000,000 lamports / 0.005 SOL.
* @export
* @interface SwapRequestComputeUnitPriceMicroLamports
*/
interface SwapRequestComputeUnitPriceMicroLamports {
}
/**
* Check if a given object implements the SwapRequestComputeUnitPriceMicroLamports interface.
*/
declare function instanceOfSwapRequestComputeUnitPriceMicroLamports(value: object): boolean;
declare function SwapRequestComputeUnitPriceMicroLamportsFromJSON(json: any): SwapRequestComputeUnitPriceMicroLamports;
declare function SwapRequestComputeUnitPriceMicroLamportsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapRequestComputeUnitPriceMicroLamports;
declare function SwapRequestComputeUnitPriceMicroLamportsToJSON(value?: SwapRequestComputeUnitPriceMicroLamports | null): any;
/**
* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*
* The version of the OpenAPI document: 6.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
* Prioritization fee lamports paid for the transaction in addition to the signatures fee. Mutually exclusive with compute_unit_price_micro_lamports. If `auto` is used, Jupiter will automatically set a priority fee and it will be capped at 5,000,000 lamports / 0.005 SOL.
* @export
* @interface SwapRequestPrioritizationFeeLamports
*/
interface SwapRequestPrioritizationFeeLamports {
}
/**
* Check if a given object implements the SwapRequestPrioritizationFeeLamports interface.
*/
declare function instanceOfSwapRequestPrioritizationFeeLamports(value: object): boolean;
declare function SwapRequestPrioritizationFeeLamportsFromJSON(json: any): SwapRequestPrioritizationFeeLamports;
declare function SwapRequestPrioritizationFeeLamportsFromJSONTyped(json: any, ignoreDiscriminator: boolean): SwapRequestPrioritizationFeeLamports;
declare function SwapRequestPrioritizationFeeLamportsToJSON(value?: SwapRequestPrioritizationFeeLamports | null): any;
/**
* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*
* The version of the OpenAPI document: 6.0.0
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
/**
*
* @export
* @interface SwapRequest

@@ -689,3 +747,3 @@ */

/**
* Automatically wrap/unwrap SOL. If false, it will use wSOL token account. Will be ignored if `destinationTokenAccount` is set because the `destinationTokenAccount` may belong to a different user that we have no authority to close.
* Default is true. If true, will automatically wrap/unwrap SOL. If false, it will use wSOL token account. Will be ignored if `destinationTokenAccount` is set because the `destinationTokenAccount` may belong to a different user that we have no authority to close.
* @type {boolean}

@@ -696,3 +754,3 @@ * @memberof SwapRequest

/**
* This enables the usage of shared program accountns. That means no intermediate token accounts or open orders accounts need to be created for the users. But it also means that the likelihood of hot accounts is higher.
* Default is true. This enables the usage of shared program accountns. That means no intermediate token accounts or open orders accounts need to be created for the users. But it also means that the likelihood of hot accounts is higher.
* @type {boolean}

@@ -703,3 +761,3 @@ * @memberof SwapRequest

/**
* Fee token account for the output token, it is derived using the seeds = ["referral_ata", referral_account, mint] and the `REFER4ZgmyYx9c6He5XfaTMiGfdLwRnkV4RPp9t9iF3` referral contract (only pass in if you set a `platformFeeBps` in `/quote` and make sure that the feeAccount has been created).
* Fee token account, same as the output token for ExactIn and as the input token for ExactOut, it is derived using the seeds = ["referral_ata", referral_account, mint] and the `REFER4ZgmyYx9c6He5XfaTMiGfdLwRnkV4RPp9t9iF3` referral contract (only pass in if you set a feeBps and make sure that the feeAccount has been created).
* @type {string}

@@ -710,15 +768,15 @@ * @memberof SwapRequest

/**
* The prioritization fee to pay in addition to the signature fee to prioritize the transaction.
* @type {number}
*
* @type {SwapRequestComputeUnitPriceMicroLamports}
* @memberof SwapRequest
*/
prioritizationFeeLamports?: number;
computeUnitPriceMicroLamports?: SwapRequestComputeUnitPriceMicroLamports;
/**
* The compute unit price to prioritize the transaction, the additional fee will be `computeUnitLimit * computeUnitPriceMicroLamports`. If `auto` is used, Jupiter will automatically set a priority fee and it will be capped at 1,000,000 lamports.
* @type {number}
*
* @type {SwapRequestPrioritizationFeeLamports}
* @memberof SwapRequest
*/
computeUnitPriceMicroLamports?: number;
prioritizationFeeLamports?: SwapRequestPrioritizationFeeLamports;
/**
* Request a legacy transaction rather than the default versioned transaction, needs to be paired with a quote using asLegacyTransaction otherwise the transaction might be too large.
* Default is false. Request a legacy transaction rather than the default versioned transaction, needs to be paired with a quote using asLegacyTransaction otherwise the transaction might be too large.
* @type {boolean}

@@ -729,3 +787,3 @@ * @memberof SwapRequest

/**
* This is useful when the instruction before the swap has a transfer that increases the input token amount. Then, the swap will just use the difference between the token ledger token amount and post token amount.
* Default is false. This is useful when the instruction before the swap has a transfer that increases the input token amount. Then, the swap will just use the difference between the token ledger token amount and post token amount.
* @type {boolean}

@@ -742,3 +800,3 @@ * @memberof SwapRequest

/**
* Simulate the swap transaction to get the compute unit consumed, factor in a margin and set the ComputeBudget's compute unit limit.
* When enabled, it will do a swap simulation to get the compute unit used and set it in ComputeBudget's compute unit limit. This will increase latency slightly since there will be one extra RPC call to simulate this. Default is `false`.
* @type {boolean}

@@ -749,2 +807,14 @@ * @memberof SwapRequest

/**
* When enabled, it will not do any rpc calls check on user's accounts. Enable it only when you already setup all the accounts needed for the trasaction, like wrapping or unwrapping sol, destination account is already created.
* @type {boolean}
* @memberof SwapRequest
*/
skipUserAccountsRpcCalls?: boolean;
/**
* The program authority id [0;7], load balanced across the available set by default
* @type {number}
* @memberof SwapRequest
*/
programAuthorityId?: number;
/**
*

@@ -766,3 +836,3 @@ * @type {QuoteResponse}

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*

@@ -794,2 +864,8 @@ * The version of the OpenAPI document: 6.0.0

lastValidBlockHeight: number;
/**
*
* @type {number}
* @memberof SwapResponse
*/
prioritizationFeeLamports?: number;
}

@@ -806,3 +882,3 @@ /**

* Jupiter API v6
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit The rate limit is 50 requests / 10 seconds. If you need a higher rate limit, feel free to contact us on [#developer-support](https://discord.com/channels/897540204506775583/910250162402779146) on Discord. ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
* The core of [jup.ag](https://jup.ag). Easily get a quote and swap through Jupiter API. ### Rate Limit We update our rate limit from time to time depending on the load of our servers. We recommend running your own instance of the API if you want to have high rate limit, here to learn how to run the [self-hosted API](https://station.jup.ag/docs/apis/self-hosted). ### API Wrapper - Typescript [@jup-ag/api](https://github.com/jup-ag/jupiter-quote-api-node) ### Data types - Public keys are base58 encoded strings - raw data such as Vec<u8\\> are base64 encoded strings
*

@@ -825,5 +901,10 @@ * The version of the OpenAPI document: 6.0.0

slippageBps?: number;
autoSlippage?: boolean;
autoSlippageCollisionUsdValue?: number;
computeAutoSlippage?: boolean;
maxAutoSlippageBps?: number;
swapMode?: QuoteGetSwapModeEnum;
dexes?: Array<string>;
excludeDexes?: Array<string>;
restrictIntermediateTokens?: boolean;
onlyDirectRoutes?: boolean;

@@ -845,9 +926,11 @@ asLegacyTransaction?: boolean;

/**
* Returns a hash map, input mint as key and an array of valid output mint as values, token mints are indexed to reduce the file size
* DEPRECATED, please use /tokens for tradable mints. Returns a hash map, input mint as key and an array of valid output mint as values, token mints are indexed to reduce the file size
* GET /indexed-route-map
* @deprecated
*/
indexedRouteMapGetRaw(requestParameters: IndexedRouteMapGetRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<IndexedRouteMapResponse>>;
/**
* Returns a hash map, input mint as key and an array of valid output mint as values, token mints are indexed to reduce the file size
* DEPRECATED, please use /tokens for tradable mints. Returns a hash map, input mint as key and an array of valid output mint as values, token mints are indexed to reduce the file size
* GET /indexed-route-map
* @deprecated
*/

@@ -899,2 +982,12 @@ indexedRouteMapGet(requestParameters?: IndexedRouteMapGetRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<IndexedRouteMapResponse>;

swapPost(requestParameters: SwapPostRequest, initOverrides?: RequestInit | InitOverrideFunction): Promise<SwapResponse>;
/**
* Returns a list of all the tradable mints
* GET /tokens
*/
tokensGetRaw(initOverrides?: RequestInit | InitOverrideFunction): Promise<ApiResponse<Array<string>>>;
/**
* Returns a list of all the tradable mints
* GET /tokens
*/
tokensGet(initOverrides?: RequestInit | InitOverrideFunction): Promise<Array<string>>;
}

@@ -912,2 +1005,2 @@ /**

export { AccountMeta, AccountMetaFromJSON, AccountMetaFromJSONTyped, AccountMetaToJSON, ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, ConfigurationParameters, Consume, DefaultApi, DefaultConfig, ErrorContext, FetchAPI, FetchError, FetchParams, HTTPBody, HTTPHeaders, HTTPMethod, HTTPQuery, HTTPRequestInit, IndexedRouteMapGetRequest, IndexedRouteMapResponse, IndexedRouteMapResponseFromJSON, IndexedRouteMapResponseFromJSONTyped, IndexedRouteMapResponseToJSON, InitOverrideFunction, Instruction, InstructionFromJSON, InstructionFromJSONTyped, InstructionToJSON, JSONApiResponse, Json, Middleware, ModelPropertyNaming, PlatformFee, PlatformFeeFromJSON, PlatformFeeFromJSONTyped, PlatformFeeToJSON, QuoteGetRequest, QuoteGetSwapModeEnum, QuoteResponse, QuoteResponseFromJSON, QuoteResponseFromJSONTyped, QuoteResponseToJSON, RequestContext, RequestOpts, RequiredError, ResponseContext, ResponseError, ResponseTransformer, RoutePlanStep, RoutePlanStepFromJSON, RoutePlanStepFromJSONTyped, RoutePlanStepToJSON, SwapInfo, SwapInfoFromJSON, SwapInfoFromJSONTyped, SwapInfoToJSON, SwapInstructionsPostRequest, SwapInstructionsResponse, SwapInstructionsResponseFromJSON, SwapInstructionsResponseFromJSONTyped, SwapInstructionsResponseToJSON, SwapMode, SwapModeFromJSON, SwapModeFromJSONTyped, SwapModeToJSON, SwapPostRequest, SwapRequest, SwapRequestFromJSON, SwapRequestFromJSONTyped, SwapRequestToJSON, SwapResponse, SwapResponseFromJSON, SwapResponseFromJSONTyped, SwapResponseToJSON, TextApiResponse, VoidApiResponse, canConsumeForm, createJupiterApiClient, exists, instanceOfAccountMeta, instanceOfIndexedRouteMapResponse, instanceOfInstruction, instanceOfPlatformFee, instanceOfQuoteResponse, instanceOfRoutePlanStep, instanceOfSwapInfo, instanceOfSwapInstructionsResponse, instanceOfSwapRequest, instanceOfSwapResponse, mapValues, querystring };
export { AccountMeta, AccountMetaFromJSON, AccountMetaFromJSONTyped, AccountMetaToJSON, ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, COLLECTION_FORMATS, Configuration, ConfigurationParameters, Consume, DefaultApi, DefaultConfig, ErrorContext, FetchAPI, FetchError, FetchParams, HTTPBody, HTTPHeaders, HTTPMethod, HTTPQuery, HTTPRequestInit, IndexedRouteMapGetRequest, IndexedRouteMapResponse, IndexedRouteMapResponseFromJSON, IndexedRouteMapResponseFromJSONTyped, IndexedRouteMapResponseToJSON, InitOverrideFunction, Instruction, InstructionFromJSON, InstructionFromJSONTyped, InstructionToJSON, JSONApiResponse, Json, Middleware, ModelPropertyNaming, PlatformFee, PlatformFeeFromJSON, PlatformFeeFromJSONTyped, PlatformFeeToJSON, QuoteGetRequest, QuoteGetSwapModeEnum, QuoteResponse, QuoteResponseFromJSON, QuoteResponseFromJSONTyped, QuoteResponseToJSON, RequestContext, RequestOpts, RequiredError, ResponseContext, ResponseError, ResponseTransformer, RoutePlanStep, RoutePlanStepFromJSON, RoutePlanStepFromJSONTyped, RoutePlanStepToJSON, SwapInfo, SwapInfoFromJSON, SwapInfoFromJSONTyped, SwapInfoToJSON, SwapInstructionsPostRequest, SwapInstructionsResponse, SwapInstructionsResponseFromJSON, SwapInstructionsResponseFromJSONTyped, SwapInstructionsResponseToJSON, SwapMode, SwapModeFromJSON, SwapModeFromJSONTyped, SwapModeToJSON, SwapPostRequest, SwapRequest, SwapRequestComputeUnitPriceMicroLamports, SwapRequestComputeUnitPriceMicroLamportsFromJSON, SwapRequestComputeUnitPriceMicroLamportsFromJSONTyped, SwapRequestComputeUnitPriceMicroLamportsToJSON, SwapRequestFromJSON, SwapRequestFromJSONTyped, SwapRequestPrioritizationFeeLamports, SwapRequestPrioritizationFeeLamportsFromJSON, SwapRequestPrioritizationFeeLamportsFromJSONTyped, SwapRequestPrioritizationFeeLamportsToJSON, SwapRequestToJSON, SwapResponse, SwapResponseFromJSON, SwapResponseFromJSONTyped, SwapResponseToJSON, TextApiResponse, VoidApiResponse, canConsumeForm, createJupiterApiClient, exists, instanceOfAccountMeta, instanceOfIndexedRouteMapResponse, instanceOfInstruction, instanceOfPlatformFee, instanceOfQuoteResponse, instanceOfRoutePlanStep, instanceOfSwapInfo, instanceOfSwapInstructionsResponse, instanceOfSwapRequest, instanceOfSwapRequestComputeUnitPriceMicroLamports, instanceOfSwapRequestPrioritizationFeeLamports, instanceOfSwapResponse, mapValues, querystring };

@@ -100,4 +100,10 @@ "use strict";

SwapModeToJSON: () => SwapModeToJSON,
SwapRequestComputeUnitPriceMicroLamportsFromJSON: () => SwapRequestComputeUnitPriceMicroLamportsFromJSON,
SwapRequestComputeUnitPriceMicroLamportsFromJSONTyped: () => SwapRequestComputeUnitPriceMicroLamportsFromJSONTyped,
SwapRequestComputeUnitPriceMicroLamportsToJSON: () => SwapRequestComputeUnitPriceMicroLamportsToJSON,
SwapRequestFromJSON: () => SwapRequestFromJSON,
SwapRequestFromJSONTyped: () => SwapRequestFromJSONTyped,
SwapRequestPrioritizationFeeLamportsFromJSON: () => SwapRequestPrioritizationFeeLamportsFromJSON,
SwapRequestPrioritizationFeeLamportsFromJSONTyped: () => SwapRequestPrioritizationFeeLamportsFromJSONTyped,
SwapRequestPrioritizationFeeLamportsToJSON: () => SwapRequestPrioritizationFeeLamportsToJSON,
SwapRequestToJSON: () => SwapRequestToJSON,

@@ -121,2 +127,4 @@ SwapResponseFromJSON: () => SwapResponseFromJSON,

instanceOfSwapRequest: () => instanceOfSwapRequest,
instanceOfSwapRequestComputeUnitPriceMicroLamports: () => instanceOfSwapRequestComputeUnitPriceMicroLamports,
instanceOfSwapRequestPrioritizationFeeLamports: () => instanceOfSwapRequestPrioritizationFeeLamports,
instanceOfSwapResponse: () => instanceOfSwapResponse,

@@ -288,4 +296,12 @@ mapValues: () => mapValues,

}));
let body;
if (isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body)) {
body = overriddenInit.body;
} else if (this.isJsonMime(headers["Content-Type"])) {
body = JSON.stringify(overriddenInit.body);
} else {
body = overriddenInit.body;
}
const init = __spreadProps(__spreadValues({}, overriddenInit), {
body: isFormData(overriddenInit.body) || overriddenInit.body instanceof URLSearchParams || isBlob(overriddenInit.body) ? overriddenInit.body : JSON.stringify(overriddenInit.body)
body
});

@@ -679,2 +695,3 @@ return { url, init };

"slippageBps": json["slippageBps"],
"computedAutoSlippage": !exists(json, "computedAutoSlippage") ? void 0 : json["computedAutoSlippage"],
"platformFee": !exists(json, "platformFee") ? void 0 : PlatformFeeFromJSON(json["platformFee"]),

@@ -702,2 +719,3 @@ "priceImpactPct": json["priceImpactPct"],

"slippageBps": value.slippageBps,
"computedAutoSlippage": value.computedAutoSlippage,
"platformFee": PlatformFeeToJSON(value.platformFee),

@@ -753,2 +771,32 @@ "priceImpactPct": value.priceImpactPct,

// generated/models/SwapRequestComputeUnitPriceMicroLamports.ts
function instanceOfSwapRequestComputeUnitPriceMicroLamports(value) {
let isInstance = true;
return isInstance;
}
function SwapRequestComputeUnitPriceMicroLamportsFromJSON(json) {
return SwapRequestComputeUnitPriceMicroLamportsFromJSONTyped(json, false);
}
function SwapRequestComputeUnitPriceMicroLamportsFromJSONTyped(json, ignoreDiscriminator) {
return json;
}
function SwapRequestComputeUnitPriceMicroLamportsToJSON(value) {
return value;
}
// generated/models/SwapRequestPrioritizationFeeLamports.ts
function instanceOfSwapRequestPrioritizationFeeLamports(value) {
let isInstance = true;
return isInstance;
}
function SwapRequestPrioritizationFeeLamportsFromJSON(json) {
return SwapRequestPrioritizationFeeLamportsFromJSONTyped(json, false);
}
function SwapRequestPrioritizationFeeLamportsFromJSONTyped(json, ignoreDiscriminator) {
return json;
}
function SwapRequestPrioritizationFeeLamportsToJSON(value) {
return value;
}
// generated/models/SwapRequest.ts

@@ -773,4 +821,4 @@ function instanceOfSwapRequest(value) {

"feeAccount": !exists(json, "feeAccount") ? void 0 : json["feeAccount"],
"prioritizationFeeLamports": !exists(json, "prioritizationFeeLamports") ? void 0 : json["prioritizationFeeLamports"],
"computeUnitPriceMicroLamports": !exists(json, "computeUnitPriceMicroLamports") ? void 0 : json["computeUnitPriceMicroLamports"],
"computeUnitPriceMicroLamports": !exists(json, "computeUnitPriceMicroLamports") ? void 0 : SwapRequestComputeUnitPriceMicroLamportsFromJSON(json["computeUnitPriceMicroLamports"]),
"prioritizationFeeLamports": !exists(json, "prioritizationFeeLamports") ? void 0 : SwapRequestPrioritizationFeeLamportsFromJSON(json["prioritizationFeeLamports"]),
"asLegacyTransaction": !exists(json, "asLegacyTransaction") ? void 0 : json["asLegacyTransaction"],

@@ -780,2 +828,4 @@ "useTokenLedger": !exists(json, "useTokenLedger") ? void 0 : json["useTokenLedger"],

"dynamicComputeUnitLimit": !exists(json, "dynamicComputeUnitLimit") ? void 0 : json["dynamicComputeUnitLimit"],
"skipUserAccountsRpcCalls": !exists(json, "skipUserAccountsRpcCalls") ? void 0 : json["skipUserAccountsRpcCalls"],
"programAuthorityId": !exists(json, "programAuthorityId") ? void 0 : json["programAuthorityId"],
"quoteResponse": QuoteResponseFromJSON(json["quoteResponse"])

@@ -796,4 +846,4 @@ };

"feeAccount": value.feeAccount,
"prioritizationFeeLamports": value.prioritizationFeeLamports,
"computeUnitPriceMicroLamports": value.computeUnitPriceMicroLamports,
"computeUnitPriceMicroLamports": SwapRequestComputeUnitPriceMicroLamportsToJSON(value.computeUnitPriceMicroLamports),
"prioritizationFeeLamports": SwapRequestPrioritizationFeeLamportsToJSON(value.prioritizationFeeLamports),
"asLegacyTransaction": value.asLegacyTransaction,

@@ -803,2 +853,4 @@ "useTokenLedger": value.useTokenLedger,

"dynamicComputeUnitLimit": value.dynamicComputeUnitLimit,
"skipUserAccountsRpcCalls": value.skipUserAccountsRpcCalls,
"programAuthorityId": value.programAuthorityId,
"quoteResponse": QuoteResponseToJSON(value.quoteResponse)

@@ -824,3 +876,4 @@ };

"swapTransaction": json["swapTransaction"],
"lastValidBlockHeight": json["lastValidBlockHeight"]
"lastValidBlockHeight": json["lastValidBlockHeight"],
"prioritizationFeeLamports": !exists(json, "prioritizationFeeLamports") ? void 0 : json["prioritizationFeeLamports"]
};

@@ -837,3 +890,4 @@ }

"swapTransaction": value.swapTransaction,
"lastValidBlockHeight": value.lastValidBlockHeight
"lastValidBlockHeight": value.lastValidBlockHeight,
"prioritizationFeeLamports": value.prioritizationFeeLamports
};

@@ -845,4 +899,5 @@ }

/**
* Returns a hash map, input mint as key and an array of valid output mint as values, token mints are indexed to reduce the file size
* DEPRECATED, please use /tokens for tradable mints. Returns a hash map, input mint as key and an array of valid output mint as values, token mints are indexed to reduce the file size
* GET /indexed-route-map
* @deprecated
*/

@@ -866,4 +921,5 @@ indexedRouteMapGetRaw(requestParameters, initOverrides) {

/**
* Returns a hash map, input mint as key and an array of valid output mint as values, token mints are indexed to reduce the file size
* DEPRECATED, please use /tokens for tradable mints. Returns a hash map, input mint as key and an array of valid output mint as values, token mints are indexed to reduce the file size
* GET /indexed-route-map
* @deprecated
*/

@@ -931,2 +987,14 @@ indexedRouteMapGet() {

}
if (requestParameters.autoSlippage !== void 0) {
queryParameters["autoSlippage"] = requestParameters.autoSlippage;
}
if (requestParameters.autoSlippageCollisionUsdValue !== void 0) {
queryParameters["autoSlippageCollisionUsdValue"] = requestParameters.autoSlippageCollisionUsdValue;
}
if (requestParameters.computeAutoSlippage !== void 0) {
queryParameters["computeAutoSlippage"] = requestParameters.computeAutoSlippage;
}
if (requestParameters.maxAutoSlippageBps !== void 0) {
queryParameters["maxAutoSlippageBps"] = requestParameters.maxAutoSlippageBps;
}
if (requestParameters.swapMode !== void 0) {

@@ -941,2 +1009,5 @@ queryParameters["swapMode"] = requestParameters.swapMode;

}
if (requestParameters.restrictIntermediateTokens !== void 0) {
queryParameters["restrictIntermediateTokens"] = requestParameters.restrictIntermediateTokens;
}
if (requestParameters.onlyDirectRoutes !== void 0) {

@@ -1038,2 +1109,29 @@ queryParameters["onlyDirectRoutes"] = requestParameters.onlyDirectRoutes;

}
/**
* Returns a list of all the tradable mints
* GET /tokens
*/
tokensGetRaw(initOverrides) {
return __async(this, null, function* () {
const queryParameters = {};
const headerParameters = {};
const response = yield this.request({
path: `/tokens`,
method: "GET",
headers: headerParameters,
query: queryParameters
}, initOverrides);
return new JSONApiResponse(response);
});
}
/**
* Returns a list of all the tradable mints
* GET /tokens
*/
tokensGet(initOverrides) {
return __async(this, null, function* () {
const response = yield this.tokensGetRaw(initOverrides);
return yield response.value();
});
}
};

@@ -1091,4 +1189,10 @@ var QuoteGetSwapModeEnum = {

SwapModeToJSON,
SwapRequestComputeUnitPriceMicroLamportsFromJSON,
SwapRequestComputeUnitPriceMicroLamportsFromJSONTyped,
SwapRequestComputeUnitPriceMicroLamportsToJSON,
SwapRequestFromJSON,
SwapRequestFromJSONTyped,
SwapRequestPrioritizationFeeLamportsFromJSON,
SwapRequestPrioritizationFeeLamportsFromJSONTyped,
SwapRequestPrioritizationFeeLamportsToJSON,
SwapRequestToJSON,

@@ -1112,2 +1216,4 @@ SwapResponseFromJSON,

instanceOfSwapRequest,
instanceOfSwapRequestComputeUnitPriceMicroLamports,
instanceOfSwapRequestPrioritizationFeeLamports,
instanceOfSwapResponse,

@@ -1114,0 +1220,0 @@ mapValues,

2

package.json
{
"name": "@jup-ag/api",
"version": "6.0.21",
"version": "6.0.22",
"description": "## Generate typescript types from swagger schema",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc