NavidCopy of Copy of Copy of Copy of Untitled Query
    Updated 2022-11-24
    with trades as (
    select
    date(block_timestamp) as day,
    'Near' as type,
    sum(deposit/1e24) as amt,
    count(distinct tx_hash) as trades_cnt,
    count(distinct tx_signer) as sellers_cnt,
    count(distinct tx_receiver) as buyers_cnt
    from
    near.core.fact_transfers
    where block_timestamp>'2022-11-01'
    group by 1
    union all
    select
    date(block_timestamp) as day,
    'Solana' as type,
    sum(AMOUNT/1e24) as amt,
    count(distinct tx_id) as trades_cnt,
    count(distinct tx_from) as sellers_cnt,
    count(distinct tx_to) as buyers_cnt
    from
    solana.core.fact_transfers
    where block_timestamp>'2022-11-01'
    group by day
    union all
    select
    date(block_timestamp) as day,
    'Ethereum' as type,
    sum(ETH_VALUE) as amt,
    count(distinct TX_HASH) as trades_cnt,
    count(distinct FROM_ADDRESS) as sellers_cnt,
    count(distinct TO_ADDRESS) as buyers_cnt
    from
    ethereum.core.fact_transactions
    where block_timestamp>'2022-11-01'
    group by day
    Run a query to Download Data