Skip to main content

Get Swap Quote

Get Swap Quote

Query Parameters
  • sellToken string required

    Possible values: Value must match regular expression ^0x[a-fA-F0-9]{40}$

  • buyToken string required

    Possible values: Value must match regular expression ^0x[a-fA-F0-9]{40}$

  • sellAmount string required

    Possible values: Value must match regular expression ^[0-9]+$

  • slippagePercentage number

    Default value: 0.01

  • excludedSources string
  • includedSources string
  • maxHops number

    Default value: 3

  • takerAddress string

    Possible values: Value must match regular expression ^0x[a-fA-F0-9]{40}$

  • maxPaths number

    Default value: 4

  • skipValidation boolean
  • includeRawParams boolean
  • feeCurrency string

    Possible values: Value must match regular expression ^0x[a-fA-F0-9]{40}$

Responses

Default Response


Schema
  • price number required
  • guarunteedPrice number required
  • validationCheck object
  • status string required

    Possible values: [success, reverted, deferred]

  • message string
  • transaction object
  • from string
  • to string required
  • value string
  • data string required
  • gasLimit string
  • gasPrice string
  • nonce string
  • chainId number
  • maxFeePerGas string
  • maxPriorityFeePerGas string
  • feeCurrency string
  • type number
  • expectedOutput string required
  • minimumOutput string required
  • allowanceTarget string required
  • estimatedPriceImpact number required
  • rawParams object
  • path array[] required
  • pairs array[] required
  • extras array[] required
  • divisors array[] required
  • inputAmounts string[] required
  • expectedOutputAmount string required
  • minOutputAmount string required
  • to string required
  • deadline string required
  • partner number required
  • sig string required
Loading...