{"uid":"cap_XCyHX6N5ONn2J5UjYBwGs","slug":"halowerk-treasury-runway-calculator-a7536acb","name":"Halowerk Treasury Runway Calculator","description":"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.","url":"https://gov.halowerk.com/v1/treasury-runway","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"horizon_months":{"type":"integer","maximum":240,"minimum":1},"monthly_inflow":{"type":"number","maximum":1000000000000000000,"minimum":0},"monthly_outflow":{"type":"number","maximum":1000000000000000000,"minimum":0},"starting_balance":{"type":"number","maximum":1000000000000000000,"minimum":0},"committed_liabilities":{"type":"number","maximum":1000000000000000000,"minimum":0},"monthly_inflow_growth_percent":{"type":"number","maximum":1000,"minimum":-100},"monthly_outflow_growth_percent":{"type":"number","maximum":1000,"minimum":-100}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_dn0agBAHK_Weof7QKIScx","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Projects DAO or protocol treasury runway by subtracting committed liabilities from the starting balance, then simulating monthly inflow and outflow with caller-supplied growth rates over a specified horizon.","exampleAgentPrompt":"Project our treasury runway over the next 36 months — we're starting with 5,000,000 USDC, have 800,000 in committed liabilities, monthly inflow of 120,000 growing at 1.5% per month, and monthly outflow of 200,000 growing at 2% per month.","exampleUseCases":[{"title":"DAO grant program sustainability check","prompt":"We have a starting treasury of 2,000,000 USDC, committed grants totaling 300,000, monthly protocol revenue of 50,000 with no growth, and monthly operating costs of 80,000 growing at 1% per month — project our runway for the next 48 months so we can decide whether to approve new grants."},{"title":"Protocol bear-market stress test","prompt":"Run a 24-month treasury scenario for us: starting balance is 10,000,000, committed liabilities are 1,500,000, monthly inflow is 400,000 shrinking at 5% per month, and monthly outflow is 350,000 growing at 3% per month — I want to see when we'd hit zero."},{"title":"Conservative growth runway planning","prompt":"Model our treasury over 60 months — we start with 800,000, have no committed liabilities, bring in 30,000 per month with 2% monthly inflow growth, and spend 25,000 per month with 0% outflow growth. Show me the projected balance trajectory."}],"resultDescription":"Returns a month-by-month projection of the treasury balance over the specified horizon, identifying the depletion month if the balance reaches zero, after subtracting committed liabilities at month zero and applying the supplied inflow and outflow growth rates each period.","failureModes":["Missing required fields (starting_balance, monthly_inflow, monthly_outflow, horizon_months) return a 400 validation error","horizon_months exceeding 240 or below 1 returns a schema validation error","monthly_inflow_growth_percent or monthly_outflow_growth_percent outside [-100, 1000] returns a bounds error","Negative balance inputs rejected by schema minimum constraint","Payment failure or insufficient USDC balance returns a 402 response"],"whenToPreferThis":"Use this endpoint when you need a deterministic, scenario-based treasury runway calculation for a DAO or protocol fund — particularly when you have known committed liabilities to subtract upfront and want to model asymmetric inflow/outflow growth rates. Prefer this over general spreadsheet tools when you need a callable, auditable API in an agentic governance workflow. Not appropriate for price forecasting, token liquidity modeling, or exchange-rate projection.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T17:53:16.176Z","isFirstParty":false}