Query editor
-- Where is all the NAT: ETHEREUM SIDE (one row of counters, embedded on BOTH dashboards).-- $NAT is a NATIVE BITCOIN token; this ERC-20 is its bridged Ethereum representation.-- The percentage is against ALL NAT ever minted on Bitcoin (3.9e14, facts-registry-- nat_circulating_supply), not the Ethereum-side supply, so "on Ethereum" reads against the whole token.-- 2026-09-17: one scan of evt_Transfer unpivoted with UNNEST (was two scans via UNION ALL: 1m18 on the Small engine).-- COLUMN CONTRACT - do not drop any of these:-- raw columns (nat_on_ethereum, locked_in_wormhole_for_other_chains) are read by query_8741675.-- *_t columns (on_ethereum_t, in_wormhole_t, in_uniswap_v4_t) are PRE-DIVIDED INTO TRILLIONS and are-- what the counters are bound to; their viz suffix is "T NAT".-- holders_on_ethereum is the holders counter.with t as (select u.addr as addr, u.delta as deltafrom erc20_ethereum.evt_Transfer ecross join unnest(array[row(e."from", -cast(e.value as double)), row(e."to", cast(e.value as double))]) as u(addr, delta)where e.contract_address = 0x249130f5e2dd4cf278180c0df8273f3592ad1247),bal as (select addr, sum(delta) as balance from twhere addr <> 0x0000000000000000000000000000000000000000group by addr having sum(delta) > 0)selectsum(balance) as nat_on_ethereum,sum(case when addr = 0x3ee18b2214aff97000d974cf647e7c347e8fa585 then balance end) as locked_in_wormhole_for_other_chains,sum(case when addr = 0x000000000004444c5dc75cb358380d2e3de08a90 then balance end) as in_uniswap_v4_pools,count(*) as holders_on_ethereum,sum(balance) / 1e12 as on_ethereum_t,sum(case when addr = 0x3ee18b2214aff97000d974cf647e7c347e8fa585 then balance end) / 1e12 as in_wormhole_t,sum(case when addr = 0x000000000004444c5dc75cb358380d2e3de08a90 then balance end) / 1e12 as in_uniswap_v4_t,round(100.0 * sum(balance) / 3.9e14, 1) as pct_of_all_nat_1dp,100.0 * sum(balance) / 3.9e14 as pct_of_all_nat_on_ethereumfrom bal;