vaults.fyi
  • General
    • 🏦Overview
    • 💡Use Cases
      • For Wallets and Apps
      • For Analysts
      • For Protocols & Product Teams
    • 🔎Methodology
      • vaults.fyi USD benchmark rate
      • vaults.fyi ETH benchmark rate
    • ❓FAQ
      • Vault requirements for inclusion on vaults.fyi
    • 🤖AI
  • API
    • Introduction
      • Market data
      • Transactional support
      • Portfolio tracking
      • Personalized insights
  • Endpoints
    • General
    • Detailed Vaults
    • Historical
    • Portfolio
    • Transactions
    • Legacy (v1) endpoints
      • v1 Market data
        • Get historical data
          • Get historical APY and TVL data on single vault over timestamp range
          • Get historical APY on single vault over timestamp range
          • Get historical TVL on single vault at single timestamp
          • Get historical APY on single vault at single timestamp
        • Get data for multiple vaults
        • Get data on single vault
          • Get APY on single vault
        • Get benchmark rates
        • Get supported vaults, networks & tokens
          • /vaults
          • /networks
          • /tokens
          • /tags
      • v1 Contextual insights
        • Top vault options for address
        • Get single top option for address
        • [Etherscan cards] Get top USD, top ETH vault for address
      • v1 Generate payloads
        • Prepare calldata
          • Supply/Deposit
          • Withdraw/Redeem
            • Request redeem
            • Claim redeem
          • Claim rewards
        • Get contract interaction details
        • Get supported assets
        • Get supported vaults
      • v1 Position tracking
        • Get user balances
        • Get user positions
        • Get list of past vault txns by user address
        • Get estimated returns for user's vault position
  • Case Studies
    • Kraken Wallet
    • Etherscan Cards
  • Plans
    • Credits
      • Credits (v1 endpoints)
  • Links
    • vaults.fyi
    • X
    • Farcaster
    • Wallfacer Labs
Powered by GitBook
On this page
  1. Endpoints
  2. Legacy (v1) endpoints
  3. v1 Generate payloads

Prepare calldata

Previousv1 Generate payloadsNextSupply/Deposit

Last updated 1 month ago

vaults.fyi Earn API endpoints help prepare payloads and calldata for interactions with smart contracts across leading DeFi protocols, including Aave, Sky, Morpho, Euler, Compound, and more.

Make protocol integrations a breeze

  • Supply/Deposit transactions: Use the to prepare transaction details and calldata for deposit transactions. Optionally, this can also return simulations for transactions.

  • Redeem transactions: Use to prepare transaction details and calldata for withdrawals from vaults.

    • for protocols with redemptions requests (e.g. Lido stETH):

      • Request redemption: Utilize the endpoint to initiate a redeem request, ensuring you have access to your assets when needed.

      • Claim redemption: Once redemption is ready, use the endpoint to claim your assets seamlessly.

    • Claim rewards: use to prepare transaction details and calldata for claiming rewards accrued by a user for a specified vault.

/v1/transactions/vaults/deposit
/v1/transactions/vaults/redeem
/v1/transactions/vaults/request-redeem
/v1/transactions/vaults/claim-redeem
/v1/transactions/vaults/claim-rewards