Capabilities
- Deposit and withdraw assets into yield vaults with a single API call per operation
- Query positions to display real-time holdings, accrued yield, and vault shares
- Collect fees from a configurable share of the yield generated through your app
- Sponsor gas for your users — if your app has gas sponsorship enabled, Privy automatically sponsors gas for earn deposit, withdraw, and incentive claim actions
Supported vaults
Earn supports multiple providers through a single API. Your app deposits, withdraws, and reads positions through the same endpoints, regardless of provider. Vault models differ under the hood — some follow the ERC-4626 tokenized vault standard, while others use different architectures. Morpho vaults curated by Gauntlet, Steakhouse, and Sentora are available today in the Privy Dashboard for self-serve setup. Beyond the featured vaults, more options are available on request. These include additional Morpho vaults — from other curators, on other chains, and in other tokens. Other providers like Aave, Veda, and Kamino are also available through the same earn API. Contact [email protected] to enable any of these. See the Aave and Veda integration guides for details.The earn API is provider- and chain-agnostic: your app passes a
vault_id and uses the same
endpoints for every vault. Privy namespaces EVM endpoints under /earn/ethereum/..., which
applies to vaults on any supported EVM chain — not just Ethereum mainnet. Privy routes each
request to the vault’s configured chain.- Gauntlet USDC Prime (USDC on Base)
- Steakhouse Prime Instant (USDC on Base)
- Sentora PathUSD (PathUSD on Tempo)
Earn on real world assets
Privy also supports earning on real world assets (RWAs) today. Contact [email protected] to explore options on Tempo and other chains.How DeFi yield is generated
DeFi vaults allocate deposited assets into onchain lending markets where borrowers pay interest to access liquidity. That interest flows back to the vault, increasing the value of deposited shares over time. Vault strategies are managed by curators who determine how capital is allocated across markets to balance risk and return. APY fluctuates based on borrower demand, market utilization, and the curator’s allocation strategy. Some vaults also distribute additional token incentives on top of the base lending yield. All lending and borrowing happens onchain through non-custodial smart contracts.How yield accrues
ERC-4626 vaults track balances in shares. A deposit converts assets into shares at the current share price. As interest accrues, the share price rises — each share redeems for more of the underlying asset. Yield accrues passively with no claiming or compounding required, and withdrawals return the original deposit plus earned yield. Example: a wallet deposits 1,000 USDC at a share price of 1.00 and receives 1,000 shares. When the share price reaches 1.05, those shares are worth 1,050 USDC. No new shares are minted; existing shares appreciate. Vault shares are standard ERC-20 tokens and can be transferred between wallets like any other token.Your app should make clear to end users that yield is generated via a DeFi protocol independent
from the wallet provider. Users keep full control of their assets and should explicitly direct the
deposit action.
Revenue sharing
Your app can earn revenue by capturing a configurable share of the yield generated by its users’ deposits. An admin wallet your app controls receives the fees. How your app configures and collects the fee depends on the vault provider:- Morpho vaults use a fee wrapper that captures up to 50% of accrued yield as shares in the admin wallet. Your app can withdraw those shares at any time to collect fees.
- Aave vaults apply a performance fee of up to 100% of yield, shared with Aave Labs, that accumulates in the vault until your app collects it — see collect performance fees.
- Veda vaults accrue performance fees that Veda claims and withdraws to your admin wallet on a recurring schedule — typically weekly or monthly, per your agreement with Veda.
Next steps
Setup
Deploy a fee wrapper and configure your vault in the Privy Dashboard.
Starter template
A working Next.js app with end-to-end deposit and withdraw flows.

