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
  • Make protocol integrations a breeze
  • Where can I see a demo?
  • How does it work?
  • Explore endpoints
  1. Endpoints
  2. Legacy (v1) endpoints

v1 Generate payloads

Previous[Etherscan cards] Get top USD, top ETH vault for addressNextPrepare calldata

Last updated 1 month ago

Our Earn API endpoints make it seamless to integrate DeFi experiences into your product by enabling a unified interface across dozens of staking and lending protocols.

  • Generate payloads/calldata: make protocol integrations a breeze by preparing payloads and calldata for supply, withdraw, and claim reward interactions with smart contracts across leading protocols. Additionally, our API can enable simulations and help protect end users against malicious transactions.

Our Earn API remains entirely non-custodial, preserving users' autonomy and security.

The Earn API simply prepares payloads and calldata, facilitating smart contract interactions with staking/lending protocols without ever holding or controlling users' funds.

Make protocol integrations a breeze

  • Supply interactions: Use the to prepare payload and calldata for deposit transactions. Optionally, this can also return simulations for transactions.

  • Withdraw interactions: Use to prepare payload 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 users can access redemptions when needed.

      • Claim redemption: Once redemption is ready, use the endpoint to prepare redemptions seamlessly.

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

  • Vault info: Use to get information about potential and necessary interactions for each lending/staking vault.

Where can I see a demo?

For a brief overview, see our Product demo.

Go to the to see the full power of our APIs. Everything on our app is powered by our APIs.

How does it work?

For a simplified overview, view our Flow diagrams. Contact us for API access and to learn more.

Explore endpoints

Prepare calldata

Get supported assets

Get supported vaults

Get contract interaction details

vaults.fyi app
/v1/transactions/vaults/deposit
/v1/transactions/vaults/redeem
/v1/transactions/vaults/request-redeem
/v1/transactions/vaults/claim-redeem
/v1/transactions/vaults/claim-rewards
/v1/transactions/vaults/actions/details