economics object gives the financial summary for the elected economic actor. It combines inflows, outflows, gas cost, pricing coverage, and any realized profit into a single curated object. Rather than asking you to aggregate raw token deltas yourself, economics pre-computes the most useful financial views and surfaces any caveats through warnings and DisplayMoney.available.
Example
DisplayMoney Shape
Many fields ineconomics use the DisplayMoney type — a small wrapper that couples a formatted value with an explicit availability flag:
string
required
Pre-formatted display string, e.g.
"$3.14" or "$-77.83". When available is false this is a placeholder dash ("—") — do not attempt to parse it as a number.boolean
required
true when the value was successfully computed. Always check this before parsing or displaying text.string
Human-readable explanation of why the value is unavailable. Only present when
available is false. Examples: "gas price unavailable", "unpriced asset in flow".Fields
string
required
Checksummed address of the actor whose economics are summarized. Matches
classification.actor.DisplayMoney
required
Gas fee paid for the transaction, expressed in USD. This is the absolute gas cost to the network — it is always negative for the signer but shown as a positive magnitude here.
DisplayMoney
required
Gross USD value of all assets received by the subject in this transaction. This is not profit — it is the raw received value before outflows are subtracted.See the Important Distinction callout below.
DisplayMoney
required
Net economic change for the subject before accounting for gas:
inflow_usd − outflow_usd. A negative value means the subject sent more than they received (e.g. a purchase or a swap with slippage).DisplayMoney
required
Net change including the gas fee:
net_usd_before_gas − fee_usd. Will be unavailable (available: false) when gas price data cannot be reliably determined at analysis time.string
required
Human-readable, comma-separated list of assets received by the subject, including quantities and symbols. Intended for display — use
inventory_deltas for machine-parseable per-asset flows.Example: "248.358547 DAI, 6789.606592 USDT, 11044.505802 USDC"string
required
Human-readable, comma-separated list of assets sent by the subject. Same format as
token_in.Example: "8.238920 WETH"DisplayMoney
required
Profit that is structurally deterministic within this single transaction — for example, the net gain from an atomic arbitrage. Zero for ordinary swaps and transfers where no within-transaction profit is detectable.
object
required
Realized profit-and-loss for the subject, when the engine has enough state to compute it.
object
required
Pricing coverage metadata — how many assets in this transaction were successfully priced.
array
required
Array of machine-readable economic anomaly warning codes. An empty array means no anomalies were detected.
Important Distinction: Inflow vs. Net
inflow_usd is gross received value. net_usd_before_gas is the subject’s net economic change.For a swap of 9,998 WETH:inflow_usd≈ $9,998 — the value of WETH receivednet_usd_before_gas≈ **9,998, spent $10,000)
inflow_usd as “profit” or “gain” — always use net_usd_before_gas or net_usd_after_gas for net economic change.