API Reference

BETA - Create a "zap" transaction

BETA FEATURE - Please contact team to be whitelisted.

Create transaction objects to interact with an EVM blockchain for a specified user.

Log in to see full request history
Path Params
string
required
Defaults to arbitrum

The blockchain that will be used for this request.

string
required
Defaults to 0xdf0770df86a8034b3efef0a1bb3c889b8332ff56

The address of the pool that will be used for this request.

string
required
Defaults to deposit

The action that will be triggered on the specified pool.

Body Params

BETA 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.

string
required
Defaults to 0x45E954acf1Efc374478dF69B45f12AEFD8AE51a3
number
Defaults to 20
boolean
Defaults to true

If selected to true, the API will not check if the provided user's address has enought token to perform the action.

boolean
Defaults to false

If selected to true, the API will put the maximum amount for the approval action.

boolean
Defaults to false

If 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 octave@valha.xyz.

swap
object
required
slippage
object
string

Referrer string that will be used on the DEX aggregators API.

ranges
array of strings

Necessary only if you want to specify the range in which you deposit (ex.: Uniswap v3, Atlendis, etc)

ranges
string

It can be an address or an id number.

Responses

approveTx might be null if there is no need for an approval.

Language
Credentials
Click Try It! to start a request and see the response here! Or choose an example:
application/json