Skip to main content
Generates ready-to-sign transaction calldata for any supported vault action. Pass the output directly to your wallet provider — no ABI encoding required.

Typical flow

  1. Check what the user can do Call GET /v2/transactions/context/{userAddress}/{network}/{vaultId} to fetch the user’s balances, limits, supported actions, required steps, and rewards context for that vault.
  2. Build the transaction payload Call GET /v2/transactions/{action}/{userAddress}/{network}/{vaultId} with the action you want to prepare. Include assetAddress and either amount for a specific amount or all=true for a full redeem-style action.
  3. Send the returned transaction with the user’s wallet The response includes the target address, calldata, and value. You do not need to encode the vault contract call yourself.
curl "https://api.vaults.fyi/v2/transactions/deposit/0xUSER/base/0xVAULT?assetAddress=0xASSET&amount=1000000" \
  -H "x-api-key: $VAULTS_FYI_API_KEY"
CapabilityHow to callRequired inputs
Check available vault actionsGET /v2/transactions/context/{userAddress}/{network}/{vaultId}Path: userAddress, network, vaultId
Build deposit, redeem, request, or claim calldataGET /v2/transactions/{action}/{userAddress}/{network}/{vaultId}Path: action, userAddress, network, vaultId. Query: assetAddress, plus amount or all=true when the action requires an amount
Check claimable rewardsGET /v2/transactions/rewards/context/{userAddress}Path: userAddress
Build rewards claim calldataGET /v2/transactions/rewards/claim/{userAddress}Path: userAddress. Query: claimIds
Add transaction attributionGET /v2/transactions/suffix/{userAddress}/{vaultId}Path: userAddress, vaultId