Flipside Teambeta expert 2
    Updated 2025-02-06
    with tb1 as (select
    BLOCK_TIMESTAMP,
    tx_hash,
    concat('0x',substring(topics[3], 26+1, 40)) AS multisig,
    concat('0x',substring(topics[2], 26+1, 40)) AS owner,
    ethereum.public.udf_hex_to_int(TOPICS[1])::float as serviceId,
    row_number() OVER (partition BY serviceId order by BLOCK_TIMESTAMP desc) as r_no
    from gnosis.core.fact_event_logs
    where (CONTRACT_ADDRESS = lower('0xb964e44c126410df341ae04B13aB10A985fE3513'))
    and TOPICS[0] = '0xaa6b005b4958114a0c90492461c24af6525ae0178db7fbf44125ae9217c69ccb'
    --and tx_hash = '0x7d266cd159f1ca06c9b5087d51e3669c8a3b0b9dd8a699eaee025dff38fea72b'
    ),

    tb2 as (
    select
    *
    from
    tb1
    where
    r_no = 1
    )
    select
    count(*) as participants
    from
    tb2


    Last run: 3 months ago
    PARTICIPANTS
    1
    64
    1
    6B
    18s