hessMonthly Net
    Updated 2025-02-09
    with delegate as (select trunc(block_timestamp,'month') as monthly,
    sum(amount/pow(10,6)) as delegate_amount,
    sum(delegate_amount) over (order by monthly asc) as cumulative_delegate_amount,
    count(DISTINCT tx_id) as delegate_tx,
    count(DISTINCT DELEGATOR_ADDRESS) as delegate_user,
    avg(amount/pow(10,6)) as avg_delegate_amount
    from axelar.gov.fact_staking
    where action = 'delegate'
    group by 1
    )
    ,
    undelegate as (select trunc(block_timestamp,'month') as monthly,
    sum(amount/pow(10,6))*-1 as undelegate_amount,
    sum(undelegate_amount) over (order by monthly asc) as cumulative_undelegate_amount,
    count(DISTINCT tx_id)*-1 as undelegate_tx,
    count(DISTINCT DELEGATOR_ADDRESS)*-1 as undelegate_user,
    avg(amount/pow(10,6)) as avg_undelegate_amount
    from axelar.gov.fact_staking
    where action = 'undelegate'
    group by 1
    )

    select a.monthly,
    delegate_amount,
    undelegate_amount,
    cumulative_delegate_amount,
    cumulative_undelegate_amount,
    delegate_tx,
    undelegate_tx,
    delegate_user,
    undelegate_user,
    cumulative_delegate_amount+cumulative_undelegate_amount as Net
    from delegate a left outer join undelegate b on a.monthly = b.monthly
    where a.monthly >= '2022-08-01'

    Last run: 2 months ago
    MONTHLY
    DELEGATE_AMOUNT
    UNDELEGATE_AMOUNT
    CUMULATIVE_DELEGATE_AMOUNT
    CUMULATIVE_UNDELEGATE_AMOUNT
    DELEGATE_TX
    UNDELEGATE_TX
    DELEGATE_USER
    UNDELEGATE_USER
    NET
    1
    2025-02-01 00:00:00.0009235044.922448-59033837.3137861483208689.60455-813996891.0044565431-8432657-586669211798.600098
    2
    2023-03-01 00:00:00.0009947832.504776-23129028.211219792767649.352683-102190982.67024410763-5603420-396690576666.682439
    3
    2024-05-01 00:00:00.00015313332.876613-64668165.6764981185312823.69736-495393094.94247216403-15506905-1064689919728.754887
    4
    2022-09-01 00:00:00.000306289336.781195-4753625.778117319632140.416389-4753809.358033915-601705-41314878331.058359
    5
    2022-10-01 00:00:00.000124884255.755141-5346843.309887444516396.17153-10100652.66791716556-3963733-287434415743.503613
    6
    2023-01-01 00:00:00.00019713604.914766-4047555.025801757582852.897918-67279688.12396211763-5233500-367690303164.773956
    7
    2024-07-01 00:00:00.00061392688.78634-46047758.4306151274353354.96712-567138310.14765412130-30235666-1320707215044.819464
    8
    2024-10-01 00:00:00.00033300232.703175-63643282.9050481394074939.73076-646303570.67772211962-17215895-1263747771369.053043
    9
    2023-10-01 00:00:00.00016146861.247734-14149469.812679985882092.62006-206816442.5154119357-4473572-317779065650.104649
    10
    2024-04-01 00:00:00.00038161070.089483-43362112.1464381169999490.82075-430724929.26597417225-18487337-1304739274561.554772
    11
    2024-08-01 00:00:00.00078021011.01597-11353479.2468711352374365.98309-578491789.3945259763-12764619-846773882576.588563
    12
    2023-08-01 00:00:00.00065320241.178826-2768187.086621951467155.277634-179649512.8930348236-3703315-257771817642.3846
    13
    2025-01-01 00:00:00.00011207981.833069-13950128.0680041473973644.68211-754963053.690679522-23873948-1717719010590.991436
    14
    2023-12-01 00:00:00.00025109173.509128-29383864.4177311025364026.88264-267694876.53098615332-17066655-1247757669150.35165
    15
    2023-07-01 00:00:00.0007222309.50931-5582432.245402886146914.098808-176881325.8064138417-3253142-224709265588.292395
    16
    2022-08-01 00:00:00.000110.42132-11.10006113342803.635194-183.57991344-67-413342620.055281
    17
    2023-04-01 00:00:00.00060437510.177888-7258391.882187853205159.530571-109449374.5524319502-5343241-362743755784.97814
    18
    2023-05-01 00:00:00.0008227014.816727-53913271.694087861432174.347298-163362646.2465188257-4503191-289698069528.10078
    19
    2023-11-01 00:00:00.00014372760.753448-31494569.5978441000254853.37351-238311012.11325512351-12705042-890761943841.260253
    20
    2024-11-01 00:00:00.00039487391.516162-36024681.8988421433562331.24693-682328252.57656411898-40515394-2741751234078.670363
    31
    4KB
    4s