Examples

Each query below ran against the chain, with the rows it returned and the blocks it read. Hover over a trimmed value to see all of it.

How far did Uniswap’s ETH price fall below Chainlink’s?

Every swap in Uniswap v3’s USDC/ETH 0.05% pool from 21:00 to 21:40 UTC on October 10, 2025, in 5-minute steps: the trades, their dollar volume and the average price paid, beside Chainlink’s ETH/USD price at the block of each step’s last trade. Swaps under $100 are left out, since a tiny trade’s price is mostly rounding.

let usdcEth = ethereum:0x88e6A0c2dDD26FEEb64F039a2c41296FcB3f5640;
let ethUsd  = ethereum:0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419;

from usdcEth events Swap
     at time '2025-10-10T21:00:00Z'..'2025-10-10T21:40:00Z' as s
| extend usd = abs(todecimal(s.amount0)) / 1e6,
         eth = abs(todecimal(s.amount1)) / 1e18
| where usd >= 100
| extend oracle = todecimal(ethUsd.latestAnswer()) / 1e8
| summarize trades = count(), volume = sum(usd), ethVolume = sum(eth),
            chainlink = last(oracle) by time = bin($timestamp, 5m)
| project { time, trades, volume, uniswap: volume / ethVolume, chainlink }
| order by time asc
timedatetimetradesbigintvolumedecimaluniswapdecimalchainlinkdecimal
2025-10-10T21:00:00Z731505255.5938213891.1108143899.52
2025-10-10T21:05:00Z461089442.738023900.8887623899.52
2025-10-10T21:10:00Z657768860.327623740.0521483753.61
2025-10-10T21:15:00Z14017770527.7578753571.1737313594.586522
2025-10-10T21:20:00Z638281457.7306093403.2660833666.457621
2025-10-10T21:25:00Z396423390.5190523334.1006843571.129307
2025-10-10T21:30:00Z241592022.8890963384.5834133732.672584
2025-10-10T21:35:00Z372854050.6704623451.4289163716.9644
uniswap and chainlink by timeLines of uniswap and chainlink over time, from all 8 rows the query returned.340036003800uniswap, chainlink21:002025-10-1021:1521:30time (UTC)2025-10-10T21:00:00Z uniswap 3891.11081465131034782481693702637140032025-10-10T21:00:00Z chainlink 3899.522025-10-10T21:05:00Z uniswap 3900.88876220697804532322636002263941832025-10-10T21:05:00Z chainlink 3899.522025-10-10T21:10:00Z uniswap 3740.05214818189153203540337642486370632025-10-10T21:10:00Z chainlink 3753.612025-10-10T21:15:00Z uniswap 3571.17373160325329242173974660940892632025-10-10T21:15:00Z chainlink 3594.5865222025-10-10T21:20:00Z uniswap 3403.26608337813138461059124283199264812025-10-10T21:20:00Z chainlink 3666.457621132025-10-10T21:25:00Z uniswap 3334.10068466943520416325703429471541652025-10-10T21:25:00Z chainlink 3571.129307552025-10-10T21:30:00Z uniswap 3384.58341380751169997975090648038660082025-10-10T21:30:00Z chainlink 3732.672584822025-10-10T21:35:00Z uniswap 3451.42891632468690044538641383671790632025-10-10T21:35:00Z chainlink 3716.9644uniswapchainlinkuniswapchainlink
uniswap and chainlink by timeLines of uniswap and chainlink over time, from all 8 rows the query returned.340036003800uniswap, chainlink21:002025-10-1021:30time (UTC)2025-10-10T21:00:00Z uniswap 3891.11081465131034782481693702637140032025-10-10T21:00:00Z chainlink 3899.522025-10-10T21:05:00Z uniswap 3900.88876220697804532322636002263941832025-10-10T21:05:00Z chainlink 3899.522025-10-10T21:10:00Z uniswap 3740.05214818189153203540337642486370632025-10-10T21:10:00Z chainlink 3753.612025-10-10T21:15:00Z uniswap 3571.17373160325329242173974660940892632025-10-10T21:15:00Z chainlink 3594.5865222025-10-10T21:20:00Z uniswap 3403.26608337813138461059124283199264812025-10-10T21:20:00Z chainlink 3666.457621132025-10-10T21:25:00Z uniswap 3334.10068466943520416325703429471541652025-10-10T21:25:00Z chainlink 3571.129307552025-10-10T21:30:00Z uniswap 3384.58341380751169997975090648038660082025-10-10T21:30:00Z chainlink 3732.672584822025-10-10T21:35:00Z uniswap 3451.42891632468690044538641383671790632025-10-10T21:35:00Z chainlink 3716.9644uniswapchainlinkuniswapchainlink
uniswap and chainlink by timeLines of uniswap and chainlink over time, from all 8 rows the query returned.340036003800uniswap, chainlink21:002025-10-1021:0521:1021:1521:2021:2521:3021:35time (UTC)2025-10-10T21:00:00Z uniswap 3891.11081465131034782481693702637140032025-10-10T21:00:00Z chainlink 3899.522025-10-10T21:05:00Z uniswap 3900.88876220697804532322636002263941832025-10-10T21:05:00Z chainlink 3899.522025-10-10T21:10:00Z uniswap 3740.05214818189153203540337642486370632025-10-10T21:10:00Z chainlink 3753.612025-10-10T21:15:00Z uniswap 3571.17373160325329242173974660940892632025-10-10T21:15:00Z chainlink 3594.5865222025-10-10T21:20:00Z uniswap 3403.26608337813138461059124283199264812025-10-10T21:20:00Z chainlink 3666.457621132025-10-10T21:25:00Z uniswap 3334.10068466943520416325703429471541652025-10-10T21:25:00Z chainlink 3571.129307552025-10-10T21:30:00Z uniswap 3384.58341380751169997975090648038660082025-10-10T21:30:00Z chainlink 3732.672584822025-10-10T21:35:00Z uniswap 3451.42891632468690044538641383671790632025-10-10T21:35:00Z chainlink 3716.9644uniswapchainlinkuniswapchainlink
ethereumlatest 26,123,150finalized 26,123,0648 rows

How did stETH’s rebases move its share rate?

Every TokenRebased event over 3 days. For each one, the share rate before and after, worked out from the event, and the rate the contract itself reports at that block.

let stETH = ethereum:0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84;

from stETH events TokenRebased at latest-21600..latest as e
| project {
    block:       $block,
    time:        $timestamp,
    tx:          $tx,
    pre:         todecimal(e.preTotalEther) / todecimal(e.preTotalShares),
    post:        todecimal(e.postTotalEther) / todecimal(e.postTotalShares),
    ethPerShare: format(e.getPooledEthByShares(1e18), 18),
    fees:        format(e.sharesMintedAsFees, 18)
  }
blockbiginttimedatetimetxbytes32predecimalpostdecimalethPerSharedecimalfeesdecimal
260329982026-09-22T12:22:23Z0x3c91f0…8fc09e1.2445581.2446331.24463352.706246
260401482026-09-23T12:22:11Z0x573bc0…944bdb1.2446331.2447101.24471054.214483
260472932026-09-24T12:23:47Z0x4732fc…3eec951.2447101.2447871.24478753.735023
ethereumlatest 26,048,591finalized 26,048,5093 rows

Who wrapped the most stETH?

All stETH transfers into the wstETH contract over 10,000 blocks, added up by sender, biggest first.

let stETH  = ethereum:0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84;
let wstETH = ethereum:0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0;

from stETH events Transfer at 26_030_000..26_040_000 as t
| where t.to == wstETH
| summarize total = sum(t.value) by sender = t.from
| order by total desc
| take 20
| project { sender, total: format(total, 18) }
senderaddresstotaldecimal
ethereum:0x8F10…f9961651.582133
ethereum:0xa88f…Dd0d1375.150659
ethereum:0x666F…a64A359.477007
ethereum:0xD292…Ccef288.573790
ethereum:0x0000…0000236.159927
ethereumlatest 26,048,591finalized 26,048,50920 rows, 5 shown

How much wstETH is on Base?

wstETH’s total supply on Ethereum and on Base, read every hour and matched by hour, with Base’s share of the two.

let ethWstETH  = ethereum:0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0;
let baseWstETH = base:0xc1CBa3fCea344f92D9239c08C0568f6F2F0ee452;

from ethWstETH at time '2026-09-01'..'2026-09-01T03:00:00Z' every 1h
     with { abi: erc20 } as e
| extend t = bin($sampleAt, 1h), eth = format(e.totalSupply(), 18)
| join (
    from baseWstETH at time '2026-09-01'..'2026-09-01T03:00:00Z' every 1h
         with { abi: erc20 } as b
    | extend t = bin($sampleAt, 1h), base = format(b.totalSupply(), 18)
  ) on t
| project { t, eth, base, sharePct: base / eth * 100 }
| order by t asc
tdatetimeethdecimalbasedecimalsharePctdecimal
2026-09-01T00:00:00Z3751370.81035229236.8482560.779364
2026-09-01T01:00:00Z3751281.98058829236.8482560.779382
2026-09-01T02:00:00Z3751282.91646129236.8482560.779382
2026-09-01T03:00:00Z3751274.43921929236.8482560.779384
ethereumlatest 26,092,284finalized 26,092,196baselatest 52,002,957finalized 52,002,2134 rows

Did the share rate track pooled ether?

Two reads of the same contract over the same blocks, joined on the block number: the share rate in one column, pooled ether in the next.

let stETH = ethereum:0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84;

from stETH at 25_800_000..26_000_000 every 7200 as a
| extend ethPerShare = format(a.getPooledEthByShares(1e18), 18)
| join (
    from stETH at 25_800_000..26_000_000 every 7200 as b
    | extend pooledEther = format(b.getTotalPooledEther(), 18)
  ) on $block
| project { block: $block, ethPerShare, pooledEther }
| order by block asc
blockbigintethPerSharedecimalpooledEtherdecimal
258048001.2421909577513.744139
258120001.2422719577726.064524
258192001.2423469578787.206360
258264001.2424249583377.950886
258336001.2425019621710.894523
ethereumlatest 26,087,835finalized 26,087,76629 rows, 5 shown

Can results with different columns be stacked?

Two block ranges stacked into one result. The later range reads an extra column, so the earlier rows leave it empty.

let stETH = ethereum:0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84;

from stETH at 25_800_000..25_900_000 every 50_000 as a
| project { block: $block, totalShares: a.getTotalShares() }
| union (
    from stETH at 25_950_000..26_000_000 every 50_000 as b
    | project { block: $block, totalShares: b.getTotalShares(), pooledEther: b.getTotalPooledEther() }
  )
| extend supply = stETH.totalSupply()
blockbiginttotalSharesbigintpooledEtherbigintsupplybigint
258000007717792489966679762581887null9586377241718516419916753
258500007746921193305714220226254null9626716672509879440847280
259000007774962693861889385743622null9665660942259896720081033
25950000776764955903033821376176596607384344981859634902539660738434498185963490253
26000000781146989493113686294718397194450896716897404742499719445089671689740474249
ethereumlatest 26,087,837finalized 26,087,7665 rows

What does an ERC-20 token say about itself?

stETH’s name, symbol, decimals and supply, read through the built-in erc20 ABI, plus how much stETH the wstETH contract holds.

let stETH  = ethereum:0xae7ab96520DE3A18E5e111B5EaAb095312D7fE84;
let wstETH = ethereum:0x7f39C581F595B53c5cb19bD0b3f8dA6c935E2Ca0;

from stETH with { abi: erc20 } as t
| project {
    name:     t.name(),
    symbol:   t.symbol(),
    decimals: t.decimals(),
    supply:   format(t.totalSupply(), 18),
    balance:  format(t.balanceOf(wstETH), 18)
  }
namestringsymbolstringdecimalsbigintsupplydecimalbalancedecimal
Liquid staked Ether 2.0stETH189761717.1353654574569.089042
ethereumlatest 26,042,676finalized 26,042,6111 row

Change a block and run it again.