adriaparcerisasSunloan deposits 2: Optimism
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
data as (
select
'ETH' as symbol,
amount,
amount_usd,
block_timestamp,
tx_hash
from optimism.core.ez_eth_transfers
where eth_to_address = lower('0xEF0B56692F78A44CF4034b07F80204757c31Bcc9')
UNION
select
symbol,
amount,
amount_usd,
block_timestamp,
tx_hash
from optimism.core.ez_token_transfers
where to_address = lower('0xEF0B56692F78A44CF4034b07F80204757c31Bcc9')
)
SELECT
trunc(block_timestamp,'day') as "Date",
count(distinct tx_hash) as "# of payments",
sum(amount_usd) as "Volume amount (USD)"
from data where amount_usd is not NULL
and amount<1e9
and block_timestamp >=current_date-INTERVAL '{{number_of_months}} MONTHS'
group by 1 order by 1 asc
Run a query to Download Data