SocioAnalyticakryptonite (SEI -- stSEI)
Updated 2024-10-10
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
›
⌄
--sei1ln7ntsqmxl8s502f83km9a475zyhcfhpj7v2fsm3pcmckdyys3tsktx9vk
--sei1swe2fy3t49j2c2xl8l64ldjaqyr6khmaya60pl5kr4em2v2jp0ysa3xjum
with all_txns as (
select
block_timestamp,
tx_id
from sei.core.fact_msg_attributes
where attribute_value = 'sei1swe2fy3t49j2c2xl8l64ldjaqyr6khmaya60pl5kr4em2v2jp0ysa3xjum'
and attribute_key = '_contract_address'
and msg_type = 'wasm'
and block_timestamp::date >= '2023-12-28'
and TX_SUCCEEDED
)
, bonded as (
select
sum(attribute_value / 1e6) as bonded
from sei.core.fact_msg_attributes a
join all_txns using(tx_id, block_timestamp)
where a.msg_type = 'wasm'
and a.attribute_key = 'bonded'
and a.block_timestamp::date >= '2023-12-28'
)
, withdraw as (
select
sum(attribute_value::int / 1e6) as withdrawn
from sei.core.fact_msg_attributes a
join all_txns using(tx_id, block_timestamp)
where a.msg_type = 'wasm'
and a.attribute_key = 'unbonded_amount'
and a.block_timestamp::date >= '2023-12-28'
)
select
QueryRunArchived: QueryRun has been archived