Same chain, same token as the vault asset - no swap needed
same_chain_swap
Same chain, different token - swap via LiFi then deposit
cross_chain
Different chain - bridge + swap via LiFi then deposit
Estimate Fields
Field
Type
Description
from_amount
string
Input amount
from_amount_usd
string/null
USD value of input
to_amount
string
Expected output in vault asset
to_amount_min
string
Minimum output after slippage
deposit_amount
string
Amount deposited into vault (after fee)
fee_amount
string
Fee deducted (10 bps)
fee_bps
int
Fee in basis points (always 10)
estimated_shares
string/null
Estimated vault shares received
price_impact
float/null
Price impact of the swap
estimated_time
int/null
Estimated time in seconds
gas_cost_usd
string/null
Estimated gas cost in USD
steps
array/null
Breakdown of swap/bridge steps
Approval
If approval is present (not null), the user must approve the spender_address to spend amount of token_address before sending the transaction. For native token deposits (ETH), approval will be null.
Errors
Status
Description
400
No route found or zero output amount
404
Vault not found
Build Transaction
After the user signs the EIP-712 intent, submit the signature to get a ready-to-send transaction.
Request Body
Field
Type
Required
Default
Description
from_chain_id
int
Yes
Source chain ID
from_token
string
Yes
Source token address
from_amount
string
Yes
Amount in raw token units
vault_id
string
Yes
Target vault ID
user_address
string
Yes
User's wallet address
signature
string
Yes
EIP-712 signature from the user
intent_amount
string
Yes
The amount from the signed intent
nonce
string
Yes
The nonce from the signed intent
deadline
string
Yes
The deadline from the signed intent
slippage
float
No
0.03
Slippage tolerance
referrer
string
No
0x0000000000000000000000000000000000000000
Referrer address
Important: The intent_amount, nonce, and deadline must match the exact values the user signed. Do not recompute these.
Example Request
Response
Transaction Request Fields
Field
Type
Description
to
string
Contract address to call
data
string
Encoded calldata
value
string
ETH value to send (usually "0")
chain_id
int
Chain to submit the transaction on
gas_limit
string/null
Suggested gas limit
Errors
Status
Description
400
No route found or contract calls quote unavailable