ZaaS HTTP API
HTTP API doc for ZaaS API
Last updated
Was this helpful?
HTTP API doc for ZaaS API
Last updated
Was this helpful?
Please refer to the following server configuration and openapi file for the http API.
Base URL
Header X-Client-Id
Some value to identify your client.
Please refer to Zap's DEX IDs and Zap's Supported Chains/Dexes for list of supported DEXes for each chain and their corresponding IDs
https://zap-api.kyberswap.com/{chain}
where chain is one of the . For example: https://zap-api.kyberswap.com/arbitrum
Please contact to whitelist your client id with more rate limit quota
/api/v1/in/route/build
Client Id
zap-docs
Request Id
the wallet sending the transaction, and thus, the tokens.
the wallet receiving the new position. default to sender if empty.
the route as returned from get-route endpoint.
^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
deadline for the swap transaction to execute.
the source of the zap-in transaction.
map of each token address to its ERC20 permit using EIP-2612 to skip a separate approval step.
/api/v1/migrate/route/build
the wallet sending the transaction, and thus, the tokens.
the wallet receiving the new position. default to sender if empty.
the route as returned from get-route endpoint.
^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$
deadline for the swap transaction to execute.
the source of the zap-migrate transaction.
whether to throw away the position NFT or keep it.
/api/v1/in/route
Refer to https://docs.kyberswap.com/kyberswap-solutions/kyberswap-zap-as-a-service/zaps-supported-chains-dexes for list of supported dexes for each chain
DEX_UNISWAPV3
DEX_UNISWAPV3
id of the pool to zap into.
0x2f5e87c9312fa29aed5c179e456625d79015299c
id of the position to add liquidity to; omit to create a new uniswapV3 position. for uniswapV2 this is user address
min tick of the position, required if creating a new uniswapV3 position.
120000
max tick of the position, required if creating a new uniswapV3 position.
480000
which token(s) to use as zap source. also accepts comma separated addresses
amount(s) to zap including fee, corresponding to tokenIn. also accepts comma separated amounts.
which token(s) to use as zap source. also accepts comma separated addresses. deprecated: use tokens_in. if both fields are specified, they are combined
0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE
amount(s) to zap including fee, corresponding to tokenIn. also accepts comma separated amounts. deprecated: use amounts_in. if both fields are specified, they are combined
1000000000000000000
whether to disable swapping with the aggregator
comma-separated list of sources to use for aggregator
comma-separated list of sources to exclude for aggregator
comma-separated list of pools to exclude for aggregator
the address of the fee recipient.
fee percentage in per cent mille (0.001% or 1 in 100,000). Ignored if feeAddress is empty. From 0 to 100,000 inclusively. Example: 1 for 0.001%.
maximum slippage tolerance in basis points (0.01%), used for aggregator (exceeding which the transaction will revert) and pool swap during zap (for additional zapping and for refund). From 0 to 10,000 inclusively. Example: 1 for 0.01%.
100
Client Id
zap-docs
Request Id
/api/v1/migrate/route
Refer to https://docs.kyberswap.com/kyberswap-solutions/kyberswap-zap-as-a-service/zaps-supported-chains-dexes for list of supported dexes for each chain
DEX_UNISWAPV3
DEX_UNISWAPV3
Refer to https://docs.kyberswap.com/kyberswap-solutions/kyberswap-zap-as-a-service/zaps-supported-chains-dexes for list of supported dexes for each chain
DEX_UNISWAPV3
DEX_UNISWAPV3
id of the pool to zap into.
id of the pool to zap into.
id of the position to add liquidity to; omit to create a new uniswapV3 position. for uniswapV2 this is user address
min tick of the position, required if creating a new uniswapV3 position.
max tick of the position, required if creating a new uniswapV3 position.
id of the position to add liquidity to; omit to create a new uniswapV3 position. for uniswapV2 this is user address
min tick of the position, required if creating a new uniswapV3 position.
max tick of the position, required if creating a new uniswapV3 position.
liquidity amount to withdraw, or empty or 0 to withdraw all
whether to collect fee from the position NFT or not.
whether to disable swapping with the aggregator
comma-separated list of sources to use for aggregator
comma-separated list of sources to exclude for aggregator
comma-separated list of pools to exclude for aggregator
options for getting aggregator routes the address of the fee recipient.
fee percentage in per cent mille (0.001% or 1 in 100,000). Ignored if feeAddress is empty. From 0 to 100,000 inclusively. Example: 1 for 0.001%.
maximum slippage tolerance in basis points (0.01%), used for aggregator (exceeding which the transaction will revert) and pool swap during zap (for additional zapping and for refund). From 0 to 10,000 inclusively. Example: 1 for 0.01%.
100
Client Id
zap-docs
Request Id