Home / Notes

When your chain data vendor goes dark

2026-11-08 · Web3 data · Edward Plata

In late October 2026, the warehouse datashares of a large chain data vendor stopped receiving new data for about a day. Teams that read those tables saw stale data or errors. Most of them had no second source to compare against, so they could not tell which numbers to trust.

This note uses that incident as an example. The lesson applies to every vendor and every feed. It shows a simple pattern: two sources, one diff, one alert. It gives three SQL queries for the diff and a short runbook for the day the primary feed stops. All facts about the incident were read on 2026-11-04 from the linked pages.

What happened

Allium detected a security incident on October 25 and disclosed it on October 28. Its CEO said the company had found "unauthorized access to certain Allium systems" (Unchained). When the Explorer and Explorer API came back online on October 28, Allium "revoked existing API keys as a precaution" (Unchained). The Allium status page asked users to make new keys and set a new password.

The warehouse delivery also stopped. Datashare tables "across all regions stopped receiving new data, from 6:09 p.m. EDT on October 26" until "delivery resumed at 6 p.m. EDT on October 27" (CoinTurk News). Unchained counts this as "just under 24 hours" without new data. The status page says backfill and verification continued after delivery resumed.

Allium then said its datashares on Snowflake, BigQuery and Databricks "have passed historical verification checks for all chains across all regions" (Unchained). The company has not disclosed "whether the datashare disruption was directly linked to the breach itself" (CoinTurk News).

There is a newer update. On the status page, the datashare incident is marked resolved on November 2. The Allium Assistant was restored on the same day. On November 4, the status page still showed the MCP service as pending, and it had no update that uploads were enabled again.

I do not know how the access occurred, and I do not guess here. The investigation is Allium's to report.

Why this is not only an Allium story

Any single feed can stop. A vendor can have an incident. A key rotation can lock out your loader overnight. A product can be retired or replaced.

Product changes are the quiet version of this risk. Goldsky's docs now say "Mirror is Goldsky's legacy pipeline product" and that it "has been superseded by Turbo" (Goldsky docs). Goldsky also says "Existing Mirror pipelines keep running", so nothing stopped there. But the migration guide says that "In most cases (around 95%) a Mirror pipeline can be mapped 1:1 onto a Turbo pipeline" (Goldsky migration guide). Some teams will have work to do in the remaining cases.

The question to ask is the same for every vendor. If this feed stops tonight, how fast do you find out, and what do you compare against? Build or buy on-chain data covers how to choose a vendor. This note covers what to do after you choose one.

The pattern: two sources, one diff, one alert

Use two independent sources for the tables that matter.

  • Primary feed. The vendor share or stream that your marts read.
  • Secondary feed. Your own sample from a node RPC, or a second vendor. It covers fewer chains and contracts. It must use a different path to the chain.

Then compare them on a schedule.

  • Per chain and per hour, compare row counts and value sums.
  • Per chain and per source, check freshness: the latest block time against now.
  • Alert on staleness and on drift above a tolerance.

The secondary must cover the same scope as the primary rows you compare. If your RPC sample reads three token contracts, filter the primary to the same three contracts before the diff. Otherwise every hour shows as drift.

The SQL

The queries use two tables with the same columns: primary_transfers and secondary_transfers. Each has chain, block_number, block_time, tx_hash, log_index and amount. Store block_time in UTC. A third table, chain_finality, holds chain, finalized_block_number and finalized_block_time. A small job fills it from the node.

The dialect is Databricks SQL. The queries also run unchanged in DuckDB. For Snowflake, write the interval as INTERVAL '30 MINUTE' and set the session time zone to UTC. For BigQuery, use TIMESTAMP_TRUNC(block_time, HOUR) in place of DATE_TRUNC('HOUR', block_time), and qualify table names with the dataset.

1. Freshness per source

WITH last_rows AS (
  SELECT 'primary' AS source, chain,
         MAX(block_number) AS last_block,
         MAX(block_time)   AS last_block_time
  FROM primary_transfers
  GROUP BY chain
  UNION ALL
  SELECT 'secondary' AS source, chain,
         MAX(block_number) AS last_block,
         MAX(block_time)   AS last_block_time
  FROM secondary_transfers
  GROUP BY chain
)
SELECT source, chain, last_block, last_block_time,
       last_block_time < CURRENT_TIMESTAMP - INTERVAL 30 MINUTE AS is_stale
FROM last_rows
ORDER BY chain, source;

Set the threshold per chain in real use. A quiet contract can have no transfers for an hour while the feed is healthy. If the vendor ships a blocks table, run this query on it. Blocks arrive on every chain, so their time is a better freshness signal.

2. Hourly counts and sums per source

CREATE OR REPLACE VIEW feed_hourly_compare AS
WITH p AS (
  SELECT t.chain, DATE_TRUNC('HOUR', t.block_time) AS block_hour,
         COUNT(*) AS row_count, SUM(t.amount) AS value_sum
  FROM primary_transfers AS t
  JOIN chain_finality AS f ON f.chain = t.chain
  WHERE DATE_TRUNC('HOUR', t.block_time) < DATE_TRUNC('HOUR', f.finalized_block_time)
  GROUP BY t.chain, DATE_TRUNC('HOUR', t.block_time)
),
s AS (
  SELECT t.chain, DATE_TRUNC('HOUR', t.block_time) AS block_hour,
         COUNT(*) AS row_count, SUM(t.amount) AS value_sum
  FROM secondary_transfers AS t
  JOIN chain_finality AS f ON f.chain = t.chain
  WHERE DATE_TRUNC('HOUR', t.block_time) < DATE_TRUNC('HOUR', f.finalized_block_time)
  GROUP BY t.chain, DATE_TRUNC('HOUR', t.block_time)
)
SELECT COALESCE(p.chain, s.chain)           AS chain,
       COALESCE(p.block_hour, s.block_hour) AS block_hour,
       p.row_count AS primary_rows,
       s.row_count AS secondary_rows,
       p.value_sum AS primary_value,
       s.value_sum AS secondary_value
FROM p
FULL OUTER JOIN s
  ON  p.chain = s.chain
  AND p.block_hour = s.block_hour;

The FULL OUTER JOIN keeps hours that only one source has. An inner join would drop them, and a missing hour is the most important signal.

Raw token amounts can be larger than a DECIMAL(38,0) sum allows. For such tokens, sum a scaled value or compare per token.

3. Drift table with a tolerance

CREATE OR REPLACE TABLE feed_drift AS
WITH params AS (
  SELECT 0 AS row_tolerance, 0.001 AS value_tolerance_ratio
)
SELECT c.chain, c.block_hour,
       c.primary_rows, c.secondary_rows,
       c.primary_value, c.secondary_value,
       CASE
         WHEN c.primary_rows IS NULL THEN 'missing_in_primary'
         WHEN c.secondary_rows IS NULL THEN 'missing_in_secondary'
         WHEN ABS(c.primary_rows - c.secondary_rows) > p.row_tolerance
           THEN 'count_drift'
         WHEN ABS(c.primary_value - c.secondary_value)
              > p.value_tolerance_ratio
                * GREATEST(ABS(c.primary_value), ABS(c.secondary_value))
           THEN 'value_drift'
         ELSE 'ok'
       END AS status
FROM feed_hourly_compare AS c
CROSS JOIN params AS p;

The row tolerance is zero because final blocks do not change. Keep a small value tolerance if one source rounds or scales amounts. Alert on any row where status is not ok in the last day of final hours. missing_in_secondary usually means your own sampler failed. Treat it as a real alert too.

Compare only final hours

Near the chain head, blocks can be replaced in a reorg. Two healthy sources can read different branches for a few minutes. If you compare those hours, you get false drift.

The WHERE clause in query 2 keeps only hours that end before the hour of the last finalized block. On Ethereum, read that block with eth_getBlockByNumber and the finalized tag, which means "the latest finalized block" (ethereum.org, JSON-RPC). Read the secondary sample at finalized as well. On chains without a finalized tag, use a confirmation depth from config. Reorgs, finality and idempotency covers finality per chain and the keys that make reruns safe.

This filter also means the diff lags the head by the finality delay. The lag is acceptable, because freshness (query 1) catches a stopped feed at the head. The diff (query 3) catches wrong or missing data in history.

The runbook when the primary goes dark

Write this down before you need it. Each step has an owner.

  1. Confirm. Check query 1 and the vendor status page. Find out if the problem is a stopped feed, revoked credentials or a change on your side.
  2. Freeze the downstream marts. Stop the jobs that build reports from the primary. Show the last good time on dashboards. Do not let partial hours flow into totals.
  3. Do not backfill from partial data. A half-loaded hour looks like a real low hour. Wait until the vendor says delivery is complete, or until your diff shows the hours are whole.
  4. Switch the secondary on for critical tables. Point only the tables that carry money or alerts to the secondary. Mark them with a source column so you can switch back cleanly.
  5. Rotate credentials. If the vendor revoked keys, make new ones and update your secrets store. Check every loader that used the old key.
  6. Re-verify history after recovery. Run query 3 over the full outage window plus a margin on each side. The vendor's own checks are useful. Your own diff is the check you control.
  7. Unfreeze and record. Rebuild the marts for the affected hours. Write down the time to detect and the time to recover for the next review.

What it costs

A secondary feed has a cost, and the size of it depends on the choice.

A small RPC sample is the cheaper option. You read a few contracts on a few chains, only up to finalized. The cost is mostly engineering time to build and keep the sampler. It cannot replace the primary. It can only tell you when the primary is wrong or late, and carry a small set of critical tables for a while.

A full second vendor costs much more. You pay a second contract and keep a second set of models in step with the first. In return, you can fail over most tables, not only a few.

The deciding question is how long your business can run on frozen marts. If the answer is days, a sample and a runbook are enough. If the answer is minutes, price a second vendor for the critical tables.

What to take away

  • Any single feed can stop, for reasons that have nothing to do with your code.
  • Keep a secondary source with a different path to the chain, even a small one.
  • Compare counts and sums per chain per hour, with a FULL OUTER JOIN.
  • Compare only final hours. Use freshness checks for the head.
  • Write the runbook first: freeze, wait for complete data, switch, re-verify.

If one vendor feed carries your reports, I can check that single-feed risk as part of a data audit. I will map which tables depend on one source and set up the diff and the alerts with you.

Book a 30-minute call

Ask a question