Learn how to query & interact with Morpho.
There is two ways to query & interact with Morpho: 1. On-Chain using a Smart Contract, 2. Off-Chain, for instance using ethers.js. In this section, you will find concrete examples showing how to interact with Morpho and how to query information about users!
- It uses utility libraries open-sourced on the morpho-utils repository. --> All deployed contracts addresses are available in the deployments glossary in the Links section.
Morpho uses delegatecalls to delegate logic to implementation contract and thus does not have an ABI with all existing events. --> Find here the complete ABIs addressing this issue.
Some dependencies allows you to ease the implementation of your scripts. --> Find here how to install the dependencies for solidity/ethers related scripts
The complete codebases of the examples provided in this section are also available on the morpho-onchain-examples for Solidity integration and on the morpho-offchain-examples for ethers.js and more generic off-chain integration repositories.
While executing transactions on Morpho contracts, one can fall on unrecognized "custom" errors. More details in the corresponding section. getStarted): adding genuine logic
Last modified 1d ago