SyndicaBlockchain Users Activities
    Updated 2024-12-03
    -- forked from Blockchain Fees per Category @ https://flipsidecrypto.xyz/studio/queries/f269fa5c-fd59-4f60-9899-5bd80bb64a35

    -- forked from Ecosystems Wallet Count Aggregate @ https://flipsidecrypto.xyz/studio/queries/d9d38293-b03d-4092-9784-9b82ef6ea193

    with

    bsc as (
    SELECT
    value:ACTIVITY as activity
    , value:ADDRESSES as addresses
    , value:TRANSACTIONS as transactions
    , value:PERCENT_TRANSACTIONS as percent_transactions
    , 'BSC' as chain
    from (
    select live.udf_api('https://flipsidecrypto.xyz/api/v1/queries/d8818d1d-c3f4-4f40-ad36-800b9cb1d6bf/data/latest'):data AS response
    ) , lateral flatten(input => response)
    ),

    polygon as (
    SELECT
    value:ACTIVITY as activity
    , value:ADDRESSES as addresses
    , value:TRANSACTIONS as transactions
    , value:PERCENT_TRANSACTIONS as percent_transactions
    , 'polygon' as chain
    from (
    select live.udf_api('https://flipsidecrypto.xyz/api/v1/queries/1cb7d371-4035-4b06-a9ce-c9bbc48544a5/data/latest'):data AS response
    ) , lateral flatten(input => response)
    ),

    base as (
    SELECT
    value:ACTIVITY as activity
    , value:ADDRESSES as addresses
    , value:TRANSACTIONS as transactions
    , value:PERCENT_TRANSACTIONS as percent_transactions