solana-framework-deno
Version:
solana-framework-deno is solana uni-tools for deno
107 lines • 2.87 kB
TypeScript
/**
* 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.
*/
import type { PlatformFee } from './PlatformFee';
import type { RoutePlanStep } from './RoutePlanStep';
import type { SwapMode } from './SwapMode';
/**
*
* @export
* @interface QuoteResponse
*/
export interface QuoteResponse {
/**
*
* @type {string}
* @memberof QuoteResponse
*/
inputMint: string;
/**
*
* @type {string}
* @memberof QuoteResponse
*/
inAmount: string;
/**
*
* @type {string}
* @memberof QuoteResponse
*/
outputMint: string;
/**
*
* @type {string}
* @memberof QuoteResponse
*/
outAmount: string;
/**
*
* @type {string}
* @memberof QuoteResponse
*/
otherAmountThreshold: string;
/**
*
* @type {SwapMode}
* @memberof QuoteResponse
*/
swapMode: SwapMode;
/**
*
* @type {number}
* @memberof QuoteResponse
*/
slippageBps: number;
/**
*
* @type {number}
* @memberof QuoteResponse
*/
computedAutoSlippage?: number;
/**
*
* @type {PlatformFee}
* @memberof QuoteResponse
*/
platformFee?: PlatformFee;
/**
*
* @type {string}
* @memberof QuoteResponse
*/
priceImpactPct: string;
/**
*
* @type {Array<RoutePlanStep>}
* @memberof QuoteResponse
*/
routePlan: Array<RoutePlanStep>;
/**
*
* @type {number}
* @memberof QuoteResponse
*/
contextSlot?: number;
/**
*
* @type {number}
* @memberof QuoteResponse
*/
timeTaken?: number;
}
/**
* Check if a given object implements the QuoteResponse interface.
*/
export declare function instanceOfQuoteResponse(value: object): boolean;
export declare function QuoteResponseFromJSON(json: any): QuoteResponse;
export declare function QuoteResponseFromJSONTyped(json: any, _ignoreDiscriminator: boolean): QuoteResponse;
export declare function QuoteResponseToJSON(value?: QuoteResponse | null): any;
//# sourceMappingURL=QuoteResponse.d.ts.map