Skip to content
Fourohtwo

emc2ai.io/x402/plan/earn-vault-withdraw

Build the UNSIGNED plan to leave an ERC-4626 earn vault (Morpho, Euler, Yearn v3, Spark Savings, Sky, Fluid, …) that Einstein's earn registry lists — the exit for yield-deposit and the Earn page. Params { chain, wallet, vault (0x), shares (share units) | "max" | amount (units of the underlying) }. The vault must be listed by the on-chain-verified Earn registry or the yield-router catalog; asset(),

BaseSolanaAnswering
POSThttps://emc2ai.io/x402/plan/earn-vault-withdraw

Uptime100% of 1 check in 30 days

30 days agoToday

Try it

Pays from your browser wallet in USDC on Base or USDG on Robinhood Chain, whichever the endpoint takes. The provider is paid directly; failed calls aren't refunded by Fourohtwo.

The response shows up here.

Call it from an agent

// npm install fourohtwo
import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain, inside your spending rules.
const pay = createPayer({ privateKey: process.env.AGENT_KEY, maxPerCallUsd: "0.05" });
const res = await pay("https://emc2ai.io/x402/plan/earn-vault-withdraw", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({}),
});
console.log(await res.json());

Example input

{}