0xC2eAf96831Cd62f8dC3B85674D749154F205562cLocus Fee Query WIP
Updated 2023-09-07
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
›
⌄
SELECT
dt,
sum(fee_usd) as total_fee_usd
FROM
(
SELECT
sum(amount_usd) * 0.003 as fee_usd,
CONCAT(
YEAR(BLOCK_TIMESTAMP),
'-',
MONTH(BLOCK_TIMESTAMP)
) as dt
FROM
ethereum.core.ez_token_transfers
WHERE
(
from_address = '0x7fb69e8fb1525ceec03783ffd8a317bafbdfd394'
AND to_address = '0x3edbe670d03c4a71367deda78e73ea4f8d68f2e4'
)
OR (
from_address = '0x3edbe670d03c4a71367deda78e73ea4f8d68f2e4'
AND to_address = '0x7fb69e8fb1525ceec03783ffd8a317bafbdfd394'
)
OR (
from_address = '0x7fb69e8fb1525ceec03783ffd8a317bafbdfd394'
AND to_address = '0xf62a24ebe766d0da04c9e2aeecd5e86fac049b7b'
)
OR (
from_address = '0xf62a24ebe766d0da04c9e2aeecd5e86fac049b7b'
AND to_address = '0x7fb69e8fb1525ceec03783ffd8a317bafbdfd394'
)
GROUP BY
dt
UNION
ALL
SELECT
Run a query to Download Data