Abbas_ra21Top delegators
    Updated 2024-02-15
    -- forked from Tracking Delegations Events @ https://flipsidecrypto.xyz/edit/queries/0ced07d1-8b72-4451-8b3f-bdf8d4b42823

    -- forked from Delegations 1 @ https://flipsidecrypto.xyz/edit/queries/a3f49113-37dc-45bb-95bd-6b968c689cf6

    -- forked from Validators Stats @ https://flipsidecrypto.xyz/edit/queries/59eee55d-6c26-4462-9960-28ca2e031404

    with
    delegate AS (
    with
    tb AS (
    select
    BLOCK_TIMESTAMP,
    TX_ID,
    ATTRIBUTE_VALUE AS val
    from
    sei.core.fact_msg_attributes
    where
    MSG_TYPE = 'delegate'
    and ATTRIBUTE_KEY = 'validator'
    )
    select
    tb.BLOCK_TIMESTAMP,
    TX_ID,
    'delegate' AS Action,
    SUBSTR(ATTRIBUTE_VALUE, 1, len(ATTRIBUTE_VALUE) -4)::Int / 1e6 AS Amount,
    val,
    null AS src_val
    from
    sei.core.fact_msg_attributes
    inner join tb using (TX_ID)
    where
    MSG_TYPE = 'delegate'
    and ATTRIBUTE_KEY = 'amount'
    ),
    undelegate AS (
    with
    Last run: about 1 year ago
    DELEGATOR
    AMOUNT
    1
    sei1sjaressd39we4hp9degachwxt8cu7glfy0ugnk2000000002.046789
    2
    sei16z3u4lemrqm674ry6wr55v6rtrgk8l7u5mv48d1699999999.91
    3
    sei1x48376e4jk7ztl67z8wdfptrmc2vfx674yc89k700000000.003192
    4
    sei1aceycsneknrsm9atwqu6ufu79cgdmr8gaa6sat199999999.85
    5
    sei1z4ch443zvz6kpdv2ffuxguzq97njkz572xs3gx74999999.55
    6
    sei16th69ztqzzym37mef7qnnfjvsee7kf320yc9y073350000.402423
    7
    sei1s5g8uv9arduqm47zgc7rtcmk9um9wyc5j4shgd70749999.55
    8
    sei13ttycqcle6tfu7avppluae29krp50wu3azy9fm69029999.470034
    9
    sei1gggnc53dng4dht2hcvge4djj8qf5y507v7trrx67499999.55
    10
    sei1rthxuzsuu56fqhtgewdpqqz8y2u9hsyjnd0hc564499999.55
    11
    sei1vu9mwal0e758x2sku0vx7la6ggjwmkvjknlz7h61929999.55
    12
    sei1e22msazh4pmdzvpckzfsth37ys4c4yh85dcg8q61099999.55
    13
    sei1wsz3ruf7pz9sjmvpqc93vnj039y0fdaaaddshe57999999.55
    14
    sei1kpyuuq9dxwvtjadenrh5ay85tzhgzrfmjz52kl55299999.55
    15
    sei1xyp8xxely9txewfe7nes2nxrzr0qyrfghrj5cs46576000
    16
    sei1n2zmtwf9v3a8m8ulr659hv3vwyzp5c5dp2rgxn44249999.55
    17
    sei1hdkq7y23rmj9wdc8cjvgzum3f4fcnar57rlgu637496294.9
    18
    sei1dafl7d032av6rxf0ays6tnrpr0defkwlexu7u033319999.55
    19
    sei1kgmdy3jhjwgrtfqjellgdfjpma8de9jfgexwz330512270.9
    20
    sei12hwtflhvx8l89wxyvsqcmnaagl9aj5jq9nmsd025584949.981234
    20
    1KB
    521s