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| timedatetime | tradesbigint | volumedecimal | uniswapdecimal | chainlinkdecimal |
|---|---|---|---|---|
| 2025-10-10T21:00:00Z | 73 | 1505255.593821 | 3891.110814 | 3899.52 |
| 2025-10-10T21:05:00Z | 46 | 1089442.73802 | 3900.888762 | 3899.52 |
| 2025-10-10T21:10:00Z | 65 | 7768860.32762 | 3740.052148 | 3753.61 |
| 2025-10-10T21:15:00Z | 140 | 17770527.757875 | 3571.173731 | 3594.586522 |
| 2025-10-10T21:20:00Z | 63 | 8281457.730609 | 3403.266083 | 3666.457621 |
| 2025-10-10T21:25:00Z | 39 | 6423390.519052 | 3334.100684 | 3571.129307 |
| 2025-10-10T21:30:00Z | 24 | 1592022.889096 | 3384.583413 | 3732.672584 |
| 2025-10-10T21:35:00Z | 37 | 2854050.670462 | 3451.428916 | 3716.9644 |
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)
}| blockbigint | timedatetime | txbytes32 | predecimal | postdecimal | ethPerSharedecimal | feesdecimal |
|---|---|---|---|---|---|---|
| 26032998 | 2026-09-22T12:22:23Z | 0x3c91f0…8fc09e | 1.244558 | 1.244633 | 1.244633 | 52.706246 |
| 26040148 | 2026-09-23T12:22:11Z | 0x573bc0…944bdb | 1.244633 | 1.244710 | 1.244710 | 54.214483 |
| 26047293 | 2026-09-24T12:23:47Z | 0x4732fc…3eec95 | 1.244710 | 1.244787 | 1.244787 | 53.735023 |
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) }| senderaddress | totaldecimal |
|---|---|
| ethereum:0x8F10…f996 | 1651.582133 |
| ethereum:0xa88f…Dd0d | 1375.150659 |
| ethereum:0x666F…a64A | 359.477007 |
| ethereum:0xD292…Ccef | 288.573790 |
| ethereum:0x0000…0000 | 236.159927 |
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| tdatetime | ethdecimal | basedecimal | sharePctdecimal |
|---|---|---|---|
| 2026-09-01T00:00:00Z | 3751370.810352 | 29236.848256 | 0.779364 |
| 2026-09-01T01:00:00Z | 3751281.980588 | 29236.848256 | 0.779382 |
| 2026-09-01T02:00:00Z | 3751282.916461 | 29236.848256 | 0.779382 |
| 2026-09-01T03:00:00Z | 3751274.439219 | 29236.848256 | 0.779384 |
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| blockbigint | ethPerSharedecimal | pooledEtherdecimal |
|---|---|---|
| 25804800 | 1.242190 | 9577513.744139 |
| 25812000 | 1.242271 | 9577726.064524 |
| 25819200 | 1.242346 | 9578787.206360 |
| 25826400 | 1.242424 | 9583377.950886 |
| 25833600 | 1.242501 | 9621710.894523 |
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()| blockbigint | totalSharesbigint | pooledEtherbigint | supplybigint |
|---|---|---|---|
| 25800000 | 7717792489966679762581887 | null | 9586377241718516419916753 |
| 25850000 | 7746921193305714220226254 | null | 9626716672509879440847280 |
| 25900000 | 7774962693861889385743622 | null | 9665660942259896720081033 |
| 25950000 | 7767649559030338213761765 | 9660738434498185963490253 | 9660738434498185963490253 |
| 26000000 | 7811469894931136862947183 | 9719445089671689740474249 | 9719445089671689740474249 |
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)
}| namestring | symbolstring | decimalsbigint | supplydecimal | balancedecimal |
|---|---|---|---|---|
| Liquid staked Ether 2.0 | stETH | 18 | 9761717.135365 | 4574569.089042 |