Midnight: Developer Resources
Find APIs, SDKs, contracts, examples, and external resources for developers integrating Morpho Midnight fixed-rate markets.
This page is your central hub for all the tools, links, and data sources you need to build on Morpho Midnight.
Integration Methods
These tools provide easier access to onchain data for frontends, backends, and analytics.
- Midnight REST API: Indexed onchain state (markets, positions, transactions, offer groups, and performance data).
- API Reference: Morpho API reference
- Examples: Midnight Get data tutorial
- Base URL:
https://api.morpho.org/v0/midnight/ - Tutorials:
- Guides:
- Morpho SDK - Midnight: ready-to-send Midnight taker, maker, and position-maintenance transactions, plus the low-level toolkit for constructing offers, computing ticks, and encoding payloads.
- Midnight Quoter bot: see the canonical bot overview, source code, CLI, and setup references.
Data & Contracts
These resources are for interacting directly with the blockchain.
- Contract Specifications: For detailed function signatures, events, and errors, refer to the canonical contract specs:
- Midnight Core Contract: immutable fixed-rate lending primitive via isolated permissionless markets
- Midnight Bundles: atomic multi-step transactions, including maker and taker operations
- GitHub Repositories:
- Midnight: The core protocol contracts (Midnight.sol, interfaces, libraries).
Other
- Validation Rules Reference: Full table of Router mempool rules (what the Router checks before indexing an offer)