BETA - Create a "zap" transactionCopy Pagepost https://api.valha.xyz/v0/{chain}/pools/{pool_address}/zap/{action}BETA FEATURE - Please contact team to be whitelisted. Create transaction objects to interact with an EVM blockchain for a specified user.Recent RequestsLog in to see full request historyTimeStatusUser Agent Retrieving recent requests…LoadingLoading…Path ParamschainstringenumrequiredDefaults to arbitrumThe blockchain that will be used for this request.arbitrumoptimismAllowed:arbitrumoptimismpool_addressstringrequiredDefaults to 0xdf0770df86a8034b3efef0a1bb3c889b8332ff56The address of the pool that will be used for this request.actionstringenumrequiredDefaults to depositThe action that will be triggered on the specified pool.depositredeemAllowed:depositredeemBody ParamsBETA FEATURE - Please contact team to be whitelisted. This endpoint creates a zap to execute the given action for a given user on a given pool. If the action is a deposit action, the specified swap.token will be transform in the pool underlying token and deposit, if the action is a redeem or claim action, the pool underlying token or reward token will be zap to the specified swap.token.userstringrequiredDefaults to 0x45E954acf1Efc374478dF69B45f12AEFD8AE51a3amountnumberDefaults to 20disable_checkbooleanDefaults to trueIf selected to true, the API will not check if the provided user's address has enought token to perform the action.truefalsemaximum_approvalbooleanDefaults to falseIf selected to true, the API will put the maximum amount for the approval action.truefalseuse_valha_routerbooleanDefaults to falseIf selected to true, the API will use the EVM router developped by the Valha team to make sure the exact swapped amount into the protocols. Otherwise, if selected to false, the API will use the multicall contract developped by the SAFE team but you might receive some token dust on your wallet after the transaction as the exact amount coming out of the swap can not be known off-chain. If you are not clear on this, please contact Octave on telegram or at [email protected].truefalseswapobjectrequiredswap objectslippageobjectslippage objectreferrerstringReferrer string that will be used on the DEX aggregators API.rangesarray of stringsNecessary only if you want to specify the range in which you deposit (ex.: Uniswap v3, Atlendis, etc)rangesADD stringrange_idstringIt can be an address or an id number.Responses 200approveTx might be null if there is no need for an approval. 400Updated over 2 years ago Did this page help you?YesNo