Skip to content
Fourohtwo

Before moving treasury funds out of an ERC-4626 or ERC-7540 vault

agents.writerslogic.com/api/v1/vault-exit

Before moving treasury funds out of an ERC-4626 or ERC-7540 vault: reads the chain at one pinned block and returns how much can exit now, the haircut vs convertToAssets, partial-exit maximum, liquidity coverage, queue/cooldown timing, admin-power flags (upgrade, pause, multisig threshold, timelock), and a verdict EXIT_NOW_FULL / EXIT_PARTIAL / QUEUED / BLOCKED / UNKNOWN. With a holder it simulates

BaseUnchecked
POSThttps://agents.writerslogic.com/api/v1/vault-exit

UptimeNot checked yet

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

import { createPayer } from "fourohtwo";

// One agent key pays USDC on Base or USDG on Robinhood Chain,
// inside the spending rules you set on Fourohtwo.
const pay = createPayer({ privateKey: process.env.AGENT_KEY });
const res = await pay("https://agents.writerslogic.com/api/v1/vault-exit", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"exit":{"shares":"1000000000000000000000"},"chain":"ethereum","vault":"0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB"}),
});
console.log(await res.json());

Example input

{
  "exit": {
    "shares": "1000000000000000000000"
  },
  "chain": "ethereum",
  "vault": "0xBEEF01735c132Ada46AA9aA4c54623cAA92A64CB"
}