ArioFlow wallets - 4
    Updated 2022-11-06
    with Wallet_providers as (
    select
    proposer,
    case
    when payer = '0x39e42c67cc851cfb' then 'lilico'
    when payer = '0x55ad22f01ef568a1' then 'Blocto'
    when payer = '0x18eb4ee6b3c026d2' then 'Dapper'
    end as "Wallet Name"
    from flow.core.fact_transactions
    where 1=1
    and payer in ('0x39e42c67cc851cfb', '0x55ad22f01ef568a1', '0x18eb4ee6b3c026d2')
    and BLOCK_TIMESTAMP >= CURRENT_DATE - 30
    )
    select
    date_trunc('day', BLOCK_TIMESTAMP) as date,
    "Wallet Name",
    --NFT_COLLECTION,
    count(distinct TX_ID) as "# NFT Trades",
    count(distinct BUYER) as "# NFT Traders"
    from flow.core.ez_nft_sales a join Wallet_providers on buyer = proposer
    and BLOCK_TIMESTAMP >= CURRENT_DATE - 30
    group by 1,2
    Run a query to Download Data