API Reference
Base Earn API: Get Vault
Return one Base Earn vault by ID, with live onchain state, APY metrics, and share price. Morpho vaults also return total assets and total supply.
Returns one vault from the catalog by its
The TypeScript and Python examples use the
vaultId, with the same fields as a List Vaults row plus the vault’s current share price. Morpho and Upshift both return sharePrice. For Morpho, the response also includes totalAssets and totalSupply. Upshift responses include redemptionLagSeconds, depositsPaused and withdrawalsPaused.
A missing field means the value is unavailable, never zero. Morpho metrics currently include APY but not TVL.
Path Parameters
The vault identifier from discovery. An unknown ID returns
404.earn() helper from Call the API. Response examples use illustrative values.
Response Fields
The response wraps one vault invault. It has every field described in List Vaults, plus:
The value of one whole share (
10 ** share.decimals atomic units) in the asset’s atomic units. Returned for Morpho and Upshift. For steakUSDC, "1000060" means one share is worth 1.00006 USDC.The queued-withdrawal waiting period and pause flags, as described in List Vaults.