Hour | Day Name | TX_COUNT | |
---|---|---|---|
1 | 0 | 1 - Mon | 62 |
2 | 0 | 2 - Tue | 191 |
3 | 0 | 3 - Wed | 143 |
4 | 0 | 4 - Thu | 94 |
5 | 0 | 5 - Fri | 92 |
6 | 0 | 6 - Sat | 67 |
7 | 0 | 7 - Sun | 121 |
8 | 1 | 1 - Mon | 49 |
9 | 1 | 2 - Tue | 234 |
10 | 1 | 3 - Wed | 119 |
11 | 1 | 4 - Thu | 120 |
12 | 1 | 5 - Fri | 113 |
13 | 1 | 6 - Sat | 122 |
14 | 1 | 7 - Sun | 104 |
15 | 2 | 1 - Mon | 79 |
16 | 2 | 2 - Tue | 232 |
17 | 2 | 3 - Wed | 145 |
18 | 2 | 4 - Thu | 104 |
19 | 2 | 5 - Fri | 182 |
20 | 2 | 6 - Sat | 88 |
elsinaTime Pattern
Updated 2 days ago
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
›
⌄
with price as (
select
date_trunc('day', hour) as date,
avg(price) as price_usd
from crosschain.price.ez_prices_hourly
where
blockchain = 'ethereum' and
token_address = '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2'
group by 1
),
base as (
SELECT
e.block_timestamp,
e.origin_from_address,
e.tx_hash,
value as amount,
amount * price_usd as amount_usd,
tx_fee,
utils.udf_hex_to_string(substring(data, 129)) AS domain_name
from ink.core.fact_event_logs e left join ink.core.fact_transactions t on e.tx_hash = t.tx_hash left join price on e.block_timestamp::date = date
where
e.tx_succeeded = TRUE and
topics[0] = '0x53946bf984072f5888fcb2d7d2b0587c8efeb9187d958f21809711cf00b4b4a5' and
origin_to_address = '0xfb2cd41a8aec89efbb19575c6c48d872ce97a0a5'
)
SELECT
date_part('hour', block_timestamp) as "Hour",
case when dayofweek(block_timestamp)=0 then 7 else dayofweek(block_timestamp) end||' - '||dayname(block_timestamp) as "Day Name",
COUNT(DISTINCT tx_hash) AS tx_count
FROM base
GROUP BY 1, 2
ORDER BY 1,2 asc
Last run: 2 days ago
...
168
3KB
3s