pub struct TokensV2VerificationCraftTxnResponse {Show 21 fields
pub amount: String,
pub code: f64,
pub error: Option<String>,
pub expire_at: Option<String>,
pub fee_amount: f64,
pub fee_lamports: f64,
pub fee_mint: String,
pub fee_token_decimals: f64,
pub fee_usd_amount: Option<f64>,
pub gasless: bool,
pub input_decimals: Option<f64>,
pub input_mint: Option<String>,
pub max_input_amount: Option<String>,
pub mint: String,
pub quoted_input_amount: Option<String>,
pub receiver_address: String,
pub request_id: String,
pub token_decimals: f64,
pub token_usd_rate: Option<f64>,
pub total_time: f64,
pub transaction: String,
}Fields§
§amount: StringJUP amount collected in smallest unit. JUP path transfers exactly 1000 JUP (1000000000); swap paths yield at least that.
code: f64Status code (0 for success)
error: Option<String>Error message if crafting failed
expire_at: Option<String>Expiry timestamp for the crafted transaction
fee_amount: f64Fee amount in smallest unit
fee_lamports: f64Transaction fee in lamports
fee_mint: StringMint address of the fee token
fee_token_decimals: f64Decimals of the fee token
fee_usd_amount: Option<f64>Transaction fee in USD
gasless: boolWhether the transaction is gasless
input_decimals: Option<f64>Input token decimals (non-JUP paths)
input_mint: Option<String>Input token mint address (non-JUP paths)
max_input_amount: Option<String>Maximum atomic input amount for the swap; equal to quotedInputAmount on the current swap flow (non-JUP paths)
mint: StringMint address of the payment token (JUP)
quoted_input_amount: Option<String>Atomic input amount for the swap, sized to yield at least 1000 JUP (non-JUP paths)
receiver_address: StringWallet address receiving the JUP payment
request_id: StringUnique request ID. Pass this to the execute endpoint.
token_decimals: f64Decimals of the payment token
token_usd_rate: Option<f64>USD rate of the payment token at time of crafting
total_time: f64Time taken to craft the transaction in milliseconds
transaction: StringBase64-encoded unsigned transaction
Trait Implementations§
Source§impl Clone for TokensV2VerificationCraftTxnResponse
impl Clone for TokensV2VerificationCraftTxnResponse
Source§fn clone(&self) -> TokensV2VerificationCraftTxnResponse
fn clone(&self) -> TokensV2VerificationCraftTxnResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more