Skip to main content
POST
/
quotes
Get quotes for swap or bridge
curl --request POST \
  --url https://api.dzap.io/v1/quotes \
  --header 'Content-Type: application/json' \
  --data '
{
  "fromChain": 42161,
  "data": [
    {
      "amount": "332999",
      "srcToken": "0xFd086bC7CD5C481DCC9C85ebE478A1C0b69FCbb9",
      "destToken": "0x2791Bca1f2de4661ED88A30C99A7a9449Aa84174",
      "slippage": 0.9,
      "toChain": 137
    }
  ],
  "gasless": false
}
'
{}

Body

application/json
fromChain
integer
required

Source chain ID where the swap originates

Example:

42161

data
object[]
required

Array of quote request details for each token pair

gasless
boolean
required

Whether the user will use gasless execution

Example:

false

account
string<address>

Optional user wallet address for account-specific quotes

Example:

"0x99BCEBf44433E901597D9fCb16E799a4847519f6"

filter
enum<string>
default:all

Quote filter: all (default), best (highest output), fastest (lowest duration)

Available options:
all,
best,
fastest
disablePricing
boolean

Skip USD pricing in response

bridges
object

Filter bridge providers by allow/deny list

dexes
object

Filter DEX/swap providers by allow/deny list

Response

Successful response. Top-level keys are pair identifiers (e.g. fromChain_srcToken-toChain_destToken). Each value has recommendedSource, bestReturnSource, fastestSource, tokensWithoutPrice, and quoteRates keyed by provider ID.

{key}
object