Qiguard API docs

Qiguard API

The Qiguard API prices token swaps and builds the transaction for them on BSC, Ethereum, Base and Polygon. Every trade settles in one transaction through the Qiguard settlement contract of the chain, straight from the taker's wallet.

Paths, parameters and response fields follow the 0x Swap API v2 and Gasless API v2 wherever the meaning is the same, so an existing 0x integration moves over by changing the host and the key (the 0x header names are accepted too); the few parameters that differ are listed on Migrate from 0x.

Not in v1: integrator fees (swapFee*), exact-out (buyAmount) and the /swap/permit2/* endpoints.

Products

ProductWhat it doesChains
Swap (allowance holder)price and quote; the quote returns the transaction the taker sendsBSC, Ethereum, Base, Polygon
GaslessThe taker signs a Permit2 message; the Qiguard relayer sends the transaction and pays the gasBSC, Base
ChainchainIdSwapGaslessSourcesListed tokens
BSC56yesyesPancakeSwap_V2, PancakeSwap_V346
Ethereum1yesnoUniswap_V2, Uniswap_V354
Base8453yesyesUniswap_V2, Uniswap_V321
Polygon137yesnoQuickSwap_V2, Uniswap_V316

Gasless is being enabled per chain; until then POST /gasless/submit returns 503 GASLESS_NOT_ENABLED, and GET /gasless/chains shows enabled: false for that chain. Gasless price and quote work on both chains meanwhile.

Base URL and headers

Access

  1. Sign in at dashboard.qiguard.com with MetaMask.
  2. Create an app (products and chains) and a secret key.
  3. Every new app is reviewed during the invite phase. Until it is approved, its keys answer 403 APP_NOT_APPROVED.

The Quickstart walks through the first price, quote and swap.

What the API does not do

Pages