Earn API
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.
What is the Earn API?
At a high level, our Earn API provides the following capabilities:
Transaction execution: prepare transaction details and calldata for deposits, withdrawals, and rewards-related interactions on leading DeFi yield vaults. Additionally, our API simulates transactions and helps protect end users against malicious transactions.
Position monitoring: track an address’s positions on DeFi lending and staking protocols, providing key metrics on position current value, historical value, and returns.
The Earn API is entirely non-custodial, preserving users' autonomy and security.
How it works: The Earn API prepares transaction details and calldata, facilitating transactions related to staking/lending without holding or controlling user funds.
Key Benefits
Increase user engagement, with contextual insights
Find yield opportunities for a given address, based upon its balances and preferences
Present user with easy to parse list of yield opportunities
Make transactions a breeze
Perpare vault interactions: Use our endpoints to prepare necessary interactions with each vault. Our API can prepare txn details and calldata, as well as return simulations for each transaction.
Supply/Deposit transactions: Prepare transaction details and calldata for deposit transactions.
Redeem transactions: Prepare transaction details and calldata for withdrawals from vaults.
Claim rewards: Prepare transaction details and calldata for claiming rewards accrued by a user for a specified vault.
Track portfolio performance
Get user balances of idle assets
Get user balances of active lending/staking LP positions, along with total returns estimates and average APYs for positions.
TL;DR
Enhance your platform's functionality with robust DeFi staking & lending capabilities
Integrate your choice of 200+ DeFi opportunities through our unified API
Simplify DeFi lending and staking experiences for users
Maintain the non-custodial nature of your service
Where can I see a demo?
Go to the vaults.fyi app 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.
Last updated