Skip to main content
Returns the live Treasury state for a workspace. Everything is derived from the ledger; nothing is set by hand.

Query parameters

string
default:"demo"
The workspace to read.

Response

Returns a TreasuryState.
number
startingCapital + deposits + revenue - expense.
number
Real capital added through Stripe Checkout.
number
Revenue Stripe confirms was actually collected.
number
Total of executed spends.
number
revenue - expense.
number
Spend so far today, against the daily cap.
number
Proposals awaiting a human decision.
Budget
The hard caps in force.
Proposal[]
All proposals for the workspace.
LedgerEntry[]
The signed ledger.
string
One of test, live, or none.