Moeeth vs polygon - fees
Updated 2022-07-08
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
›
⌄
WITH fee_e as (
SELECT
date_trunc('day', block_timestamp)::date as days,
SUM(tx_FEE) AS tot_fees,
'Ethereum' AS type
FROM ethereum.core.fact_transactions
WHERE days > '2022-07-01'
GROUP BY 1
)
, fee_p as (
select
date_trunc('day', block_timestamp)::date as days,
sum(tx_FEE) as tot_fees,
'Polygon' AS type
from
polygon.core.fact_transactions
where block_timestamp >= '2022-07-01'
group by 1
)
SELECT *
FROM fee_e
UNION ALL
SELECT *
FROM fee_p
Run a query to Download Data