{"id":28409226,"url":"https://github.com/morpho-org/morpho-offchain-examples","last_synced_at":"2025-06-25T00:31:27.136Z","repository":{"id":119012979,"uuid":"526497028","full_name":"morpho-org/morpho-offchain-examples","owner":"morpho-org","description":"🏃 Learn how to interact off-chain with the Morpho-Compound protocol!","archived":false,"fork":false,"pushed_at":"2022-10-05T14:20:36.000Z","size":62,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-18T08:49:05.193Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/morpho-org.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-08-19T06:58:47.000Z","updated_at":"2025-05-22T17:50:41.000Z","dependencies_parsed_at":null,"dependency_job_id":"50733ebd-792e-42c7-bad1-5da1e7d48e5e","html_url":"https://github.com/morpho-org/morpho-offchain-examples","commit_stats":null,"previous_names":["morpho-org/morpho-offchain-examples"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/morpho-org/morpho-offchain-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-offchain-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-offchain-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-offchain-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-offchain-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/morpho-org","download_url":"https://codeload.github.com/morpho-org/morpho-offchain-examples/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/morpho-org%2Fmorpho-offchain-examples/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261782258,"owners_count":23208901,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-02T06:13:42.048Z","updated_at":"2025-06-25T00:31:27.119Z","avatar_url":"https://github.com/morpho-org.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Morpho-Compound Off-Chain Examples\n\nLearn how to interact with the Morpho-Compound protocol off-chain using a Smart Contract!\n\n## Installation\n\nThis example repository uses `yarn` to manage dependencies.\n\n```bash\ngit clone git@github.com:morpho-labs/morpho-offchain-examples.git\ncd morpho-offchain-examples\nyarn\n```\n\n## Usage\n\nCopy-paste `.env.example`, name it `.env` and fill it with the values you want to use:\n\n- `PRIVATE_KEY`: the private key of the hot wallet you want to use to supply/borrow through Morpho (:warning: never provide a program with the private key to your personal wallet!)\n- `RPC_URL`: the RPC url to use to query data from the blockchain (you can get a free one with main RPC providers: Alchemy, Infura, ...)\n\n```bash\ncp .env.example .env\n```\n\n## Examples\n\n### Morpho-Compound\n\n- [MorphoSupplier.js](./src/compoud/MorphoSupplier.js): query supply-related data \u0026 supply through Morpho-Compound using ethers.js\n- [MorphoBorrower.js](./src/compoud/MorphoBorrower.js): query borrow-related data \u0026 borrow through Morpho-Compound using ethers.js\n- [MorphoRewardsTracker.js](./src/compoud/MorphoRewardsTracker.js): query rewards-related data using ethers.js\n\n### Morpho-Aave V2\n\n- [MorphoSupplier.js](./src/aave-v2/MorphoSupplier.js): query supply-related data \u0026 supply through Morpho-Aave V2 using ethers.js\n- [MorphoBorrower.js](./src/aave-v2/MorphoBorrower.js): query borrow-related data \u0026 borrow through Morpho-Aave V2 using ethers.js\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fmorpho-offchain-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmorpho-org%2Fmorpho-offchain-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmorpho-org%2Fmorpho-offchain-examples/lists"}