Query editor
-- CTE to capture all native token transfers on BaseWITH native_transfers AS (SELECTblock_time,block_number,tx_hash,tx_from AS sender,"to" AS recipient,amount_raw,amountFROM tokens.transfersWHEREblockchain = 'base'AND token_standard = 'native'AND amount > 0 -- Ensure we're only looking at positive transfers),-- CTE to determine the first funding event for each walletfirst_fundings AS (SELECTrecipient,min_by(sender, block_number) AS first_funded_by,min_by(block_time, block_number) AS first_funding_time,min(block_number) AS first_funding_block,min_by(tx_hash, block_number) AS tx_hash,min_by(amount_raw, block_number) AS amount_raw,min_by(amount, block_number) AS amountFROM native_transfersGROUP BY recipient),-- CTE to get the list of verified users with their first attestation timeverified_users AS (SELECTCAST(recipient AS varbinary) AS recipient,MIN(attestation_time) AS first_attestation_timeFROM query_4121582GROUP BY CAST(recipient AS varbinary)),-- CTE to join verified users with their first funding informationverified_fundings AS (SELECTv.recipient AS verified_address,v.first_attestation_time,f.first_funded_by,f.first_funding_timeFROM verified_users vLEFT JOIN first_fundings f ON v.recipient = f.recipient),-- Generate a list of all unique weeks in the datasetall_weeks AS (SELECT DISTINCT date_trunc('week', block_time) AS weekFROM base.transactions),-- CTE to capture weekly activity of verified walletsweekly_activity AS (SELECT