Earn is an Enterprise feature. Reach out to [email protected] to request
access.
Prerequisites
- A Privy app with embedded wallets configured
- API credentials (your app ID and app secret)
- A webhook endpoint registered in the Privy Dashboard (recommended)
Deploy a fee wrapper
Open the Wallet infrastructure > Earn page in the Privy Dashboard and configure a fee wrapper. During setup, your app selects:- A Morpho vault to allocate assets into
- The percentage of generated yield your app receives
- An admin wallet to claim fees and manage the vault configuration
Using an external wallet as an admin wallet (advanced)
Using an external wallet as an admin wallet (advanced)
The admin wallet must sign onchain transactions to manage the vault and claim fees. Exchange
wallets, cold storage, and other non-signing wallets do not work. Privy cannot reassign the
admin wallet after creation.
Updating the fee wrapper configuration (advanced)
Updating the fee wrapper configuration (advanced)
Privy assigns all fee wrapper roles to the admin wallet. Developers can update fee wrapper
configurations in the future. Learn more about fee wrapper roles
here. Contact
[email protected] to change the fee wrapper configuration.
Copy the vault ID
After setup, Privy provides a uniquevault_id for the vault. Copy this value — all deposit and withdraw API calls require it.
To verify the vault is live, query its details with the get vault details endpoint:
Next steps
Deposit funds
Deposit assets from a wallet into a yield vault.
Withdraw and claim
Withdraw deposited assets with accrued yield and claim reward incentives.
Manage positions
Query vault positions and track activity with webhooks.
Starter template
A working Next.js app with end-to-end deposit and withdraw flows.

