Query editor
WITHblocks AS (SELECTtime,"number" AS blockFROMethereum.blocksWHERE"number" > 13578840),balances_updated /* BalancesUpdated reports a snapshot from a previous block `block`, so we need to get the time at which that */ /* snapshot block # occurred to report the accurate time. */ AS (SELECTCAST(block AS BIGINT) AS block,CAST("totalEth" AS DOUBLE) / CAST("rethSupply" AS DOUBLE) AS eth_reth_ratio,CAST("rethSupply" AS DOUBLE) / CAST("totalEth" AS DOUBLE) AS reth_eth_ratio,CAST("rethSupply" AS DOUBLE) / 1e18 AS reth_supply,CAST("stakingEth" AS DOUBLE) / 1e18 AS staking_eth,CAST("totalEth" AS DOUBLE) / 1e18 AS total_ethFROMrocketnetwork_ethereum.RocketNetworkBalances_evt_BalancesUpdatedWHEREblock > CAST(13578840 AS UINT256))SELECTtime,eth_reth_ratio,reth_eth_ratio,reth_supply AS reth_supply,staking_eth AS staking_eth,total_eth AS total_ethFROMblocks AS bJOIN balances_updated AS d ON b.block = d.blockORDER BYtime DESC NULLS FIRST /* Descending so that counter visualizations pick up the most recent value. */