Query editor
-- All finalized V4 transfers to the burn address on Robinhood Chain.-- All holders remain included; project totals combine the three disclosed fee wallets.-- Transfers to dead do not reduce ERC-20 totalSupply.-- RPC ranges are chunked below the provider limit. Block times use Dune or RPC.WITH finalized_response AS (SELECT json_parse(http_post('https://rpc.mainnet.chain.robinhood.com','{"jsonrpc":"2.0","id":1,"method":"eth_getBlockByNumber","params":["finalized",false]}',ARRAY['Content-Type: application/json'])) AS reply), finalized_head AS (SELECT from_base(coalesce(substr(json_extract_scalar(reply, '$.result.number'), 3), 'RPC_FINALITY_MISSING'), 16) AS final_blockFROM finalized_response), block_ranges AS (SELECT first_block, least(first_block + BIGINT '9999999', final_block) AS last_blockFROM finalized_head CROSS JOIN UNNEST(sequence(BIGINT '0', final_block, BIGINT '10000000')) AS b(first_block)), rpc_response AS (SELECT replyFROM block_ranges CROSS JOIN UNNEST(ARRAY[json_parse(http_post('https://rpc.mainnet.chain.robinhood.com',concat('{"jsonrpc":"2.0","id":1,"method":"eth_getLogs","params":[{"fromBlock":"0x', to_base(first_block, 16), '","toBlock":"0x', to_base(last_block, 16), '","address":"0xc60ba256b44334a0cd2c7242e98b88f031abb006","topics":["0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",null,"0x000000000000000000000000000000000000000000000000000000000000dead"]}]}'),ARRAY['Content-Type: application/json']))]) AS r(reply)), log_documents AS (SELECT documentFROM rpc_responseCROSS JOIN UNNEST(CAST(json_parse(CASE WHEN substr(json_format(json_extract(reply, '$.result')), 1, 1) = '['THEN json_format(json_extract(reply, '$.result'))ELSE concat('RPC_LOGS_ERROR: ', json_format(reply))END) AS ARRAY(JSON))) AS l(document)), decoded AS (SELECTvarbinary_to_uint256(from_hex(substr(json_extract_scalar(document, '$.data'), 3))) AS amount_raw,varbinary_substring(from_hex(substr(json_extract_scalar(document, '$.topics[1]'), 3)), 13, 20) AS sender,from_hex(substr(json_extract_scalar(document, '$.transactionHash'), 3)) AS tx_hash,from_base(substr(json_extract_scalar(document, '$.blockNumber'), 3), 16) AS block_number,from_base(substr(json_extract_scalar(document, '$.logIndex'), 3), 16) AS log_indexFROM log_documentsWHERE lower(json_extract_scalar(document, '$.address')) = '0xc60ba256b44334a0cd2c7242e98b88f031abb006'AND json_extract_scalar(document, '$.topics[0]') = '0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef'AND json_extract_scalar(document, '$.topics[2]') = '0x000000000000000000000000000000000000000000000000000000000000dead'AND COALESCE(json_extract_scalar(document, '$.removed'), 'false') = 'false'), ranked AS (SELECT *, row_number() OVER (PARTITION BY tx_hash, log_index ORDER BY block_number) AS duplicate_rankFROM decodedWHERE amount_raw > UINT256 '0'), timed AS (SELECT r.amount_raw, r.sender, r.tx_hash, r.block_number, r.log_index,indexed.indexed_time, block_responseFROM ranked rLEFT JOIN (SELECT tx_hash, "index" AS log_index, max(block_time) AS indexed_timeFROM robinhood.logsWHERE contract_address = 0xc60ba256b44334a0cd2c7242e98b88f031abb006AND topic0 = 0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3efAND topic2 = 0x000000000000000000000000000000000000000000000000000000000000deadGROUP BY tx_hash, "index") indexed ON indexed.tx_hash = r.tx_hash AND indexed.log_index = r.log_index