Zero XQuote Raw Response
data class ZeroXQuoteRawResponse(val blockNumber: String? = null, val buyAmount: String, val buyToken: String? = null, val fees: ZeroXFees? = null, val issues: ZeroXIssues? = null, val liquidityAvailable: Boolean? = null, val minBuyAmount: String? = null, val route: ZeroXRoute? = null, val sellAmount: String, val sellToken: String? = null, val tokenMetadata: ZeroXTokenMetadata? = null, val totalNetworkFee: String? = null, val transaction: ZeroXTransaction)
Raw response from the ZeroX quote endpoint. Contains all swap details including the transaction to execute.
Parameters
block Number
The block number at which the quote was generated.
buy Amount
The amount of tokens to receive.
buy Token
The token address being bought.
fees
Fee information for the swap.
issues
Any issues detected with the swap.
liquidity Available
Whether liquidity is available for this swap.
min Buy Amount
The minimum amount of tokens to receive after slippage.
route
The routing information for the swap.
sell Amount
The amount of tokens being sold.
sell Token
The token address being sold.
token Metadata
Metadata about the tokens involved.
total Network Fee
The total network fee in wei.
transaction
The transaction object to execute the swap.
Constructors
Link copied to clipboard
constructor(blockNumber: String? = null, buyAmount: String, buyToken: String? = null, fees: ZeroXFees? = null, issues: ZeroXIssues? = null, liquidityAvailable: Boolean? = null, minBuyAmount: String? = null, route: ZeroXRoute? = null, sellAmount: String, sellToken: String? = null, tokenMetadata: ZeroXTokenMetadata? = null, totalNetworkFee: String? = null, transaction: ZeroXTransaction)