Observability

contract.dev

An observability platform for smart contracts. Watch what your contracts are doing in production, get alerted when one moves outside expected conditions, and drill from a month-long trend down to the single call behind it. Stagenets replay mainnet state, so a change can be rehearsed before it ships.

Year2025 – Present

TimelineOngoing

RoleLead Frontend Engineer

Overview

Overview is a map of watched contracts at three scopes: all chains, one chain, or one contract. All chains is one node per chain, with the value held on it. Select a node to zoom in. On a chain, the nodes are the watched contracts, sized by value held, and the links are value transferred over the selected range. The rails show transactions, volume, TVL and open alerts for the current scope. Activity for that scope runs under the map.

Watching runs on Ethereum, Arbitrum, Avalanche and Sepolia. Any EVM chain can be added — which ones are live is a question of demand and running cost, not architecture.

Overview at all-chains scope, with Ethereum, Arbitrum, Avalanche and Sepolia, vitals, open alerts and the activity feed
Overview, all chains. One node per chain. Transactions, volume, TVL and open alerts in the rails. Watched contracts on the right, activity under the map.

Contracts

The Contracts console is the dashboards for every watched contract, or for one contract when you select its row. Range, chain and contract are the scope, stored in the URL. There are five views: Overview, Flow, Users, Assets, Methods.

Overview charts transactions, transfer volume and TVL, with the change against the previous window. Transactions can be split by call type (state-changing, all, or reads) and by route (direct, or through another contract). The register under the chart lists each watched contract for that range.

Users is who signed, and how the call arrived: direct, through another contract, or through a door. A door is an intermediary such as a router or aggregator. Assets is TVL over the range, split by chain, and current holdings by token. Flow is inflows, outflows and net, by counterparty and token. Methods is calls, reverts, callers and gas per method. A method’s telemetry can be tracked as a metric from that view.

Contracts console Overview: state-changing transactions over 24 hours and the watched-contract register
Contracts, Overview. State-changing transactions over 24h, and the register of watched contracts.
Contracts console Users view, how traffic arrived, split into direct, via another contract, and doors
Contracts, Users. How traffic arrived: direct, via another contract, and doors.
Contracts console Assets view with TVL stacked by chain and a holdings table
Contracts, Assets. TVL by chain, then holdings by token.

Activity

Activity is a feed of rows that involve a watched contract. Calls made through other contracts are included, and so are events the contract emitted. Four tabs: Transactions, Calls, Events, Flows. Chain and contract filter every tab. Filters are in the URL.

Opening a transaction shows the decoded call and its arguments, token transfers, events, and state changes by address. When an alert episode or a metric reading names a transaction, it links here.

Activity calls tab with an expanded depositETH row showing a two-hop route into Aave V3 Pool
Activity, Calls. depositETH into Aave V3 Pool, two hops, through WrappedTokenGateway.
Transaction page for a withdraw, with decoded arguments, token transfers and before-and-after state
The transaction page. Decoded withdraw, token transfers, and state changes by address.

Metrics and monitors

A metric is an on-chain value recorded over time: a view-function result, a native or token balance, total supply, TVL, or method telemetry. Method telemetry is calls, reverts, revert rate, distinct callers, or p95 gas, over a trailing window from 5 minutes to 24 hours. Any address can be tracked. Watching is only required for the dashboards. Each reading keeps the transaction behind the change, where there is one.

A monitor is a rule on a metric. It alerts when the value falls below or rises above a number, or when it does the same against another metric. An optional warning threshold sits on the healthy side of the alert. Warning and alerting come from the reading. There is no severity setting. A failed rule opens an alert episode, from the crossing until the value recovers, and sends a notification to Telegram, Slack, Discord or a webhook. The metric chart draws the warning and alert lines.

Metrics list showing revert rate, native balance, total supply and a function result
Metrics. Each tracked value with its kind, contract, chain, current value and 24h change.
ETH balance metric chart with warning and alert lines and an open warning monitor
A tracked native balance. Warning and alert lines on the chart, and the monitor on that metric.

Stagenets

A Stagenet is a private EVM testnet that replays a real chain, so it has that chain’s contracts, liquidity, prices and accounts. Mainnet Replay keeps it in sync with the chain and preserves state written by your own transactions. From an alert episode you can re-run that transaction against this state, test a fix, or stage an upgrade before mainnet.

Each Stagenet has an RPC endpoint, an explorer, a dashboard per contract, a faucet, impersonation, and state and function overrides. Hardhat and Foundry talk to it as a normal chain. Stagenets currently replay Ethereum, Base, Optimism, Arbitrum, Polygon, Avalanche, BNB Smart Chain and Monad.

The component system and the rulebook

Every screen above is built from one component system: data tables with virtual rows, a sub-ledger, charts on visx, form fields for addresses, chains and ABI parameters, and the page and rail layouts. I designed it, and I am the top committer on the product by about two to one.

The standards the screens follow are written down for the engineers and for the coding agents that work in the repo, and they are specific. Zero is a value and the dash means unknown; a failed lookup never degrades to 0. Reverts and failures never get a glyph; the figure prints in rose. The UI never names a backend component or data source. If a reader would need a sentence to understand a component, change the component.

When production went down

In October the overview and the contracts pages hung in production. From the load-balancer and Cloud Logging output: three routes were taking up to 141 seconds, the client kept polling, requests piled up, and the frontend pods were killed for memory in restart storms. The cause was a cold-cache path: a precompute that kept histories warm had been removed, so a workspace rebuilt its whole history inside the request.

I shipped the mitigation first — client and server timeouts, one shared read per key until it settled, a worker job that warms the first histories ahead of a visit, more memory — then wrote the post-mortem and the open items for the backend. The alert for the restarts had existed and had fired. Nobody was paged. That was the fix that mattered.

A CLI agents can drive

The platform can be driven from a CLI as well as the UI, designed for coding agents as much as for people: every command takes --json and prints the server’s payload, a refusal exits non-zero with a code an agent can act on. The backend engineer wrote the CLI package. I own the platform tools it calls, and I was its hardest user: seven QA rounds against local and production over two weeks, about a hundred reproduced issues, and the server fixes under them. Designing software an agent can operate turned out to be the same discipline as designing for people: deterministic commands, predictable output, docs that answer the next question.

An outbound engine run by agents

The company’s outbound runs as an agent-operated system: a markdown CRM and an operating manual that coding agents execute. Scripts classified about 7,900 protocols; agents triaged the 205 that passed the fee gate in parallel, each writing a scored card; 115 went into the CRM as leads. I built the operator side — the commands that take a lead from first look to a demo workspace and a per-lead PDF report — and the guardrails: every finding in a report is bound to an assertion and the report will not render while one fails, a proposed monitor is backtested over 90 days before it is created, and sending is always a human. Nine leads have been taken all the way to a finished report.

Stack

More projects