pub struct GetOrderResponse {Show 38 fields
pub error: Option<String>,
pub error_code: Option<f64>,
pub error_message: Option<String>,
pub expire_at: Option<String>,
pub fee_bps: Option<f64>,
pub fee_mint: Option<String>,
pub gasless: Option<bool>,
pub in_amount: Option<String>,
pub in_usd_value: Option<f64>,
pub input_mint: Option<String>,
pub last_valid_block_height: Option<String>,
pub maker: Option<String>,
pub mode: Option<String>,
pub other_amount_threshold: Option<String>,
pub out_amount: Option<String>,
pub out_usd_value: Option<f64>,
pub output_mint: Option<String>,
pub platform_fee: Option<SwapV2PlatformFee>,
pub price_impact: Option<f64>,
pub price_impact_pct: Option<String>,
pub prioritization_fee_lamports: Option<f64>,
pub prioritization_fee_payer: Option<String>,
pub quote_id: Option<String>,
pub referral_account: Option<String>,
pub rent_fee_lamports: Option<f64>,
pub rent_fee_payer: Option<String>,
pub request_id: Option<String>,
pub route_plan: Option<Vec<SwapV2RoutePlanStep>>,
pub router: Option<GetOrderResponseRouter>,
pub signature_fee_lamports: Option<f64>,
pub signature_fee_payer: Option<String>,
pub slippage_bps: Option<f64>,
pub swap_mode: Option<String>,
pub swap_type: Option<GetOrderResponseSwapType>,
pub swap_usd_value: Option<f64>,
pub taker: Option<String>,
pub total_time: Option<f64>,
pub transaction: Option<String>,
}Fields§
§error: Option<String>Duplicate of errorMessage for backwards compatibility
error_code: Option<f64>Present when taker is defined and transaction is the empty string. The router quoted a price but could not build a transaction. Match on router + errorCode to identify the error.
Aggregator routers (router is metis, dflow, okx):
- 1: Insufficient funds
- 2: Insufficient SOL for gas
- 3: Swap below minimum for gasless
JupiterZ router (router is jupiterz):
- 1: Insufficient balance to fund the swap
- 2: Missing associated token account
- 3: Quote could not be built into a transactionerror_message: Option<String>Human-readable error description. Present when taker is defined and transaction is the empty string.
Match on router + errorCode instead of this string, as the message text may be parameterised.
expire_at: Option<String>Quote expiration timestamp for RFQ swaps
fee_bps: Option<f64>Total fee rate charged for the swap in basis points. This includes the Jupiter platform fee plus any additional charges, such as gasless support cost recoup.
fee_mint: Option<String>§gasless: Option<bool>True when signature and priority fees are paid by a wallet other than the taker. Set by three independent paths:
- Automatic Jupiter sponsorship: signatureFeePayer = gasTzr94Pmp4Gf8vknQnqxeYxdgwFjbgdJa4msYRpnB
- JupiterZ market maker: signatureFeePayer is the MM address (varies per quote); Jupiter’s gas wallet can pay the rent to create the taker’s output token account when referral fees are not set
- Integrator payer: signatureFeePayer is your payer parameter
For a deterministic opt-out, check signatureFeePayer == taker on every response.
in_amount: Option<String>§in_usd_value: Option<f64>§input_mint: Option<String>§last_valid_block_height: Option<String>§maker: Option<String>Market maker address for RFQ swaps
mode: Option<String>“ultra” or “manual” based on parameters used
other_amount_threshold: Option<String>Minimum output amount after slippage
out_amount: Option<String>§out_usd_value: Option<f64>§output_mint: Option<String>§platform_fee: Option<SwapV2PlatformFee>§price_impact: Option<f64>Price impact in percentage points (e.g. -0.1 = -0.1%). Divide by 100 to convert to a decimal fraction.
price_impact_pct: Option<String>Deprecated: decimal price impact ratio. Use priceImpact divided by 100 instead.
prioritization_fee_lamports: Option<f64>Includes priority fees and tips (Jito, Nozomi)
prioritization_fee_payer: Option<String>§quote_id: Option<String>Quote ID for RFQ swaps
referral_account: Option<String>§rent_fee_lamports: Option<f64>Estimated rent fee
rent_fee_payer: Option<String>§request_id: Option<String>Unique request ID. Pass this to /execute.
route_plan: Option<Vec<SwapV2RoutePlanStep>>§router: Option<GetOrderResponseRouter>Which router won the quote
signature_fee_lamports: Option<f64>§signature_fee_payer: Option<String>§slippage_bps: Option<f64>§swap_mode: Option<String>§swap_type: Option<GetOrderResponseSwapType>Deprecated: use router instead
swap_usd_value: Option<f64>§taker: Option<String>§total_time: Option<f64>Response time in milliseconds
transaction: Option<String>- Base64-encoded transaction. Null if taker is not provided.
- Empty string if taker is provided but transaction could not be built (check errorCode).
Trait Implementations§
Source§impl Clone for GetOrderResponse
impl Clone for GetOrderResponse
Source§fn clone(&self) -> GetOrderResponse
fn clone(&self) -> GetOrderResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more