80trust / 100

Treasury Runway

by gov.halowerk.com in Weather & location

x402 APIPassing, checked 3 h ago

Subtracts committed liabilities at month zero, then projects recurring inflow and operating outflow with caller-supplied monthly growth rates. It is a scenario calculation, not a forecast of prices, token liquidity, exchange rates, or future governance decisions.

POST https://gov.halowerk.com/v1/treasury-runway

Last 30 days

All checks passedSome failedAll failedNot checked
Uptime
100%
Response time
118 ms typical, 158 ms slowest 5%
Last check
3 h ago
Next check
any minute now

How to call it

# See the payment challenge (nothing is charged)
curl -i -X POST "https://gov.halowerk.com/v1/treasury-runway" \
  -H "content-type: application/json" \
  -d '{"committed_liabilities":300000,"horizon_months":24,"monthly_inflow":85000,"monthly_inflow_growth_percent":1,"monthly_outflow":170000,"monthly_outflow_growth_percent":0.5,"starting_balance":2400000}'
import { wrapFetchWithPayment } from "@x402/fetch";
import { x402Client } from "@x402/core/client";
import { ExactEvmScheme } from "@x402/evm/exact/client";
import { privateKeyToAccount } from "viem/accounts";

const client = new x402Client().register(
  "eip155:8453",
  new ExactEvmScheme(privateKeyToAccount(process.env.AGENT_KEY)),
);
const pay = wrapFetchWithPayment(fetch, client);

// Not sure it's safe to pay? Preflight it first for $0.005:
// GET https://toolvet.app/api/v1/check?url=https%3A%2F%2Fgov.halowerk.com%2Fv1%2Ftreasury-runway
const res = await pay("https://gov.halowerk.com/v1/treasury-runway", {
  method: "POST",
  headers: { "content-type": "application/json" },
  body: JSON.stringify({"committed_liabilities":300000,"horizon_months":24,"monthly_inflow":85000,"monthly_inflow_growth_percent":1,"monthly_outflow":170000,"monthly_outflow_growth_percent":0.5,"starting_balance":2400000}),
});
console.log(await res.json());

Example input

{
  "committed_liabilities": 300000,
  "horizon_months": 24,
  "monthly_inflow": 85000,
  "monthly_inflow_growth_percent": 1,
  "monthly_outflow": 170000,
  "monthly_outflow_growth_percent": 0.5,
  "starting_balance": 2400000
}

Security scan

  • No findings. We scan names, descriptions and tool definitions for hidden instructions and other prompt-injection patterns.

Recent checks

WhenResultHTTPTimePrice
3 h agoPassed402158 ms$0.003
7 h agoPassed402134 ms$0.003
10 h agoPassed402233 ms$0.003
14 h agoPassed402153 ms$0.003
17 h agoPassed402118 ms$0.003
21 h agoPassed40297 ms$0.003
25 h agoPassed40237 ms$0.003
28 h agoPassed402113 ms$0.003
34 h agoPassed40235 ms$0.003