Morpho Borrow is a launch preview and is not yet available. Aave v4 borrowing is coming soon; supported markets and API details will be announced at release.
Demo
Before You Integrate
- Market identifiers. Use the
productId,debtMarketAssetIdand, when adding collateral,collateralMarketAssetIdsupplied for your supported market. These are API identifiers, not token addresses or onchain market IDs. A lendvaultIdcannot be used here. - Position data. The Borrow endpoint does not list markets or read positions. Connect a separate source for current collateral, debt, and liquidation risk.
- Repayment. This release does not add Base Earn endpoints for repayment, standalone collateral deposits, or collateral withdrawals. Connect those through a separate Morpho integration (see the Morpho documentation) before offering borrowing; a complete experience needs position monitoring and a working repayment path.
- Origination fee. Each borrow has a fixed 25 bps (0.25%) fee on the net proceeds, financed into the debt. See Origination Fee.
- Atomic wallet. The batch must execute atomically. A wallet that cannot do so cannot use this flow; there is no sequential fallback.
Add Collateral and Borrow
This example usesearn() and attribution from Call the API and the batch-capable execute() from Execute Calls in a Wallet. The Python and Go versions return the batch to the client, which submits it with execute(); the Go earn.Call helper adds builderCode for you. Omit both collateral fields to borrow against existing collateral.
See Also
Morpho Borrow
Market selection, origination fees, and repayment.
Borrow API Reference
Request fields and fee fields in the response.
Execute Calls in a Wallet
Verify and send the returned batch with viem.
Integrate Lending
Let users deposit into Morpho and Upshift vaults.