Track positions on Morpho
Learn how to query Morpho, on-chain via a Smart Contract & off-chain via ethers.js, TheGraph or the REST API.
In order to efficiently query data from the protocol, Morpho-Compound is equipped with a Lens that exposes on-chain & off-chain view endpoints. You can find simple, concrete examples in the following subsections or deep dive into the query endpoints here.
Morpho uses delegatecalls to delegate logic to implementation contract and thus does not have an ABI with all existing events.
Please find below the complete ABIs addressing this issue:

morpho-ethers-contract/MorphoCompound.json at main · morpho-labs/morpho-ethers-contract
GitHub
MorphoCompound + PositionsManager + InterestRatesManager ABI

morpho-ethers-contract/MorphoAaveV2.json at main · morpho-labs/morpho-ethers-contract
GitHub
MorphoAaveV2 + PositionsManager + InterestRatesManager ABI
Last modified 3mo ago