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:
Generate payloads/calldata: make protocol integrations a breeze by preparing payloads and calldata for supplying, withdrawing, and reward token claiming interactions. 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 payloads related to smart contract interactions with staking/lending protocols, 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 protocol integrations a breeze
Perpare vault interactions: Use our endpoints to prepare necessary interactions with each vault. Our API can prepare payloads and calldata, as well as return simulations for each transaction.
Supply interactions: Prepare payloads and calldata for supply/deposit function calls to smart contracts.
Withdrawal interactions: Prepare payloads and calldata for withdraw/redeem function calls to smart contracts.
Claim rewards: Prepare payloads 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?
How does it work?
For a simplified overview, view our Flow diagrams. Contact us for API access and to learn more.
Last updated