Earn: Developer Resources
This page is your central hub for all the tools, links, and data sources you need to build on Morpho's Earn product (Morpho Vaults).
Onchain Data & Contracts
These resources are for interacting directly with the blockchain.
- Vault Addresses: While you can find a static list of all core contracts on the main Addresses page, the best way to dynamically fetch all deployed vaults is via the Morpho API.
- Contract Specifications: For detailed function signatures, events, and errors, refer to the canonical Morpho Vaults Contract Specs.
- GitHub Repositories:
metamorpho-v1.1
: The latest immutable vault implementation.metamorpho
: The original vault implementation.
Offchain Data & Tools
These tools provide easier access to onchain data for frontends, backends, and analytics.
- Morpho API (Recommended): The simplest way to fetch comprehensive data about vaults, their states, APYs, and user positions.
- API Playground: api.morpho.org/graphql
- Tutorial: Using the API for Vaults
- Morpho Subgraphs: For developers who prefer querying via The Graph protocol.
- Tutorial: Using Subgraphs for Vaults
- SDKs: A suite of TypeScript libraries to accelerate your development.
@morpho-org/blue-sdk
: Core, framework-agnostic classes for entities like Vaults and Markets.@morpho-org/blue-sdk-viem
: Adds Viem-based fetchers to the core SDK classes.@morpho-org/simulation-sdk
: Simulates user interactions to predict outcomes before sending a transaction.@morpho-org/bundler-sdk-viem
: The essential tool for creating one-click user experiences by bundling multiple actions.- Learn more: Introduction to Morpho SDKs
Code & Examples
- Example Application: The
earn-basic-app
is a minimal but complete example of a React application for interacting with Morpho Vaults. - Solidity Snippets: The
morpho-blue-snippets
repository contains simple, educational Solidity contracts for common vault interactions.