create
fun create(chainId: String, buyToken: String, sellToken: String, sellAmount: String, txOrigin: String? = null, swapFeeRecipient: String? = null, swapFeeBps: Int? = null, swapFeeToken: String? = null, tradeSurplusRecipient: String? = null, gasPrice: String? = null, slippageBps: Int? = null, excludedSources: String? = null, sellEntireBalance: Boolean? = null): ZeroXQuoteRequest
Factory method to create a ZeroXQuoteRequest with Boolean to String conversion for sellEntireBalance.
Return
A new ZeroXQuoteRequest instance.
Parameters
chain Id
The blockchain identifier.
buy Token
The token to buy.
sell Token
The token to sell.
sell Amount
The amount to sell.
tx Origin
Optional transaction origin address.
swap Fee Recipient
Optional address to receive swap fees.
swap Fee Bps
Optional swap fee in basis points.
swap Fee Token
Optional token to use for swap fees.
trade Surplus Recipient
Optional address to receive trade surplus.
gas Price
Optional gas price.
slippage Bps
Optional slippage in basis points.
excluded Sources
Optional excluded sources.
sell Entire Balance
Optional Boolean flag that will be converted to "true"/"false" string.