Updated 9 days ago
    with tb1 as (select
    BLOCK_TIMESTAMP,
    tx_hash,
    MULTISIG_ADDRESS as multisig,
    OWNER_ADDRESS as owner,
    SERVICE_ID as serviceId,
    row_number() OVER (partition BY serviceId order by BLOCK_TIMESTAMP desc) as r_no
    from crosschain.olas.ez_service_staking
    where PROGRAM_NAME = 'Alpha'
    and EVENT_NAME = 'ServiceStaked'
    ),
    tb2 as (select
    *
    from tb1
    where r_no = 1)

    select
    count(*) as participants
    from tb2


    Last run: 9 days ago
    PARTICIPANTS
    1
    71
    1
    6B
    3s