Query editor
with users as (select distinct(to_) AS userfrom rabbithole_optimism.RabbitHoleReceipt_call_mint), transactions as (select a.block_time, a.to, cast(value as double)/1e18 as amountfrom optimism.transactions ainner join users bon a."from" = b.user), protocols as (select a.block_time, a.amount, b.address, b.namespacefrom transactions aleft join optimism.contracts bon a.to = b.addresswhere namespace is not NULL), top_protocols as (select namespace, count(*) as txsfrom protocolsgroup by 1order by 2 desclimit 20)select date_trunc('month', block_time) as month, namespace as protocol, count(distinct address) AS usersfrom protocolswhere protocols.namespace IN (select namespace from top_protocols)group by 1,2