# Ozmium ERC-4626 Morpho Vault Deposit Calldata

> Ozmium ERC-4626 Morpho Vault Deposit Calldata is a paid API for AI agents from ozmium.org, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Generates ordered ERC-4626 deposit calldata for a Morpho vault, including an ERC-20 approve step when the current allowance is insufficient.

## Facts

- Endpoint: POST https://ozmium.org/v1/tx/earn/deposit
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/ozmium-erc-4626-morpho-vault-deposit-calldata-bf5af833
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_HzB51wrfeDO0MbaktQjgN

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability ozmium-erc-4626-morpho-vault-deposit-calldata-bf5af833 -d '<json body>'
```

Example prompt: Deposit 500 USDC (in atomic units: 500000000) into the Morpho vault at 0xBEEF...1234 on behalf of my wallet 0xABCD...5678 — give me the ordered approve-and-deposit calldata steps I need to execute.

## When to prefer this

Use this endpoint when an agent needs to deposit assets into a Morpho ERC-4626 vault and requires both the approve and deposit calldata in one call, with automatic detection of whether an approve step is needed. Prefer over manually encoding ERC-4626 deposit calls when allowance management is needed. Best for agents automating yield-seeking strategies on Base mainnet via Morpho.

## Known failure modes

- Invalid vault address returns error — vault must be a valid ERC-4626 Morpho vault
- Invalid owner address format causes request rejection
- Assets value of zero or negative causes validation failure
- Vault not supported or not indexed by Ozmium returns not-found error
- Network unavailability returns 5xx server error
- Insufficient balance not checked at calldata-generation stage — on-chain execution may revert

## How this service works

ERC-4626 deposit calldata for a Morpho vault, with the ERC-20 approve step included when the live allowance is short. POST /v1/tx/earn/deposit { vault, assets (atomic), owner }. Returns ordered { to, data, value } steps.

## Output

An ordered array of transaction steps, each containing `to` (contract address), `data` (hex calldata), and `value` (ETH value). May include one ERC-20 approve step if current allowance is insufficient, followed by the ERC-4626 deposit step.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "owner": {
   "type": "string"
  },
  "vault": {
   "type": "string"
  },
  "assets": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/ozmium-erc-4626-morpho-vault-deposit-calldata-bf5af833/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from ozmium.org](https://www.zero.xyz/host/ozmium.org/llms.txt)
