Descout
Guide··5 min read

How Base's Earn API works: Morpho, Upshift and Aave v4

Base announced its Earn API on Nov. 23. Its docs call it a developer preview: apps request unsigned yield and borrow transactions that users' wallets sign; Morpho borrowing, documented for an upcoming release, will carry a flat 0.25% origination fee.

Drafted by the Descout article deskHow this was made
Share:
How Base's Earn API works: Morpho, Upshift and Aave v4 - Tutorial and guide

Base announced its Earn API on X on Nov. 23, 2026; its docs describe the API as in developer preview. It is a set of endpoints that lets an app offer yield and crypto-backed loans without taking custody of user funds. Base on X described it as "a simple integration for businesses to offer customers yield and loans against crypto," said it built the API from what it learned working with Coinbase, and put "$3B+ in loans and lending capital" next to the announcement. The post does not say what that figure counts or over what period. The mechanics below come from Base's own documentation for Base.

What the API does

According to the Earn overview, an app calls the API at https://api.base.org/earn/v1 to request unsigned transactions, and the user's wallet signs and submits them. The call-the-API page shows no API key or auth header. Instead, every write request must carry a builder code from a project in the Base Dashboard. The overview lists the other requirements as a connected Base wallet, the needed tokens and gas, and a vault from the catalog.

The overview documents these endpoints:

  • GET /lend/vaults lists vaults across providers.
  • GET /lend/positions lists an address's positions.
  • POST /lend/deposit builds a deposit.
  • POST /lend/withdraw builds a withdrawal for Morpho vaults.
  • POST /lend/request-withdraw, GET /lend/redemptions and POST /lend/claim handle queued withdrawals for Upshift vaults.
  • POST /borrow/morpho/transact is documented as building a Morpho borrow, optionally adding collateral, for an upcoming release (marked launch preview).

Three protocols, one usable today

The overview says: "The Base Earn API is in developer preview. Upshift Earn is available in early access. Morpho Earn, Morpho Borrow, and Aave v4 are coming soon." So only Upshift's curated cbXRP vault is usable today, in early access. The protocol table lists Morpho for USDC yield and for borrowing against supported collateral, and Aave v4 for borrowing only. The docs say Aave v4 is not part of the Morpho release and that supported markets and API details will be announced at release.

The Morpho Borrow page labels its endpoint a launch preview and describes "the upcoming Morpho Borrow release." The concepts page already documents the Morpho Earn deposit and withdrawal flow.

How withdrawals differ

Each vault carries a withdrawalMode, and the two modes use different endpoints, per the concepts page. Morpho vaults are synchronous: one withdraw call, no queue or claim step, though withdrawals depend on available liquidity. Withdrawals require a maxSlippageBps value from 0 to 9999, while deposits through the approve path have no slippage guard.

Upshift vaults are queued. The Clearstar cbXRP vault accepts cbXRP and mints upXRP shares whose value changes with yield and losses. An exit takes two steps: request a withdrawal, then claim after a waiting period given as redemptionLagSeconds. The docs say the queue date is the mined transaction's UTC timestamp plus the lag, so it can roll into the next UTC day. Sending an Upshift vault to /lend/withdraw returns a 400 error. The docs say the instant-redeem option, which carries a fee, is not exposed through this API.

Borrowing and fees

The Morpho Borrow page describes the upcoming release: the endpoint will borrow a Morpho Blue market's loan asset against supported collateral, or add collateral and borrow in one batch. The user's wallet is to own the position and receive the proceeds. Each market sets its own collateral token, oracle, interest-rate model and liquidation threshold (LLTV). Earn vault deposits will not serve as borrowing collateral.

The page describes a fixed origination fee of 25 basis points (0.25%) on the net amount, added to the debt rather than deducted from proceeds. Its example: a 1,000 USDC loan would carry a 2.50 USDC fee and 1,002.50 USDC of gross debt before interest. The release is to cover borrowing and adding collateral only. The page says there are no Base Earn endpoints for position reads, repayment, standalone collateral deposits or withdrawals on the borrow side, so those need a separate Morpho integration.

Risks the docs state

The overview says "Yield is variable and funds are exposed to protocol risk." It adds that withdrawals depend on liquidity and that borrowing carries liquidation risk. The borrow page says falling collateral value can make a position liquidatable.

What is not published

  • What the "3B+" figure in Base's post measures, and whether it is tied to the Earn API's own volume.
  • Launch partners, supported regions and any fee beyond the 0.25% Morpho borrow origination fee.
  • Dates for Morpho and Aave v4 availability, and which Aave v4 markets will be supported.

Sources

Share: