banterlyticsUntitled Query
Updated 2022-11-25
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 --USER_ADDRESS, CURRENT_BAL, USD_VALUE_NOW
-- sum(current_bal)
-- from ethereum.core.ez_current_balances
-- where CONTRACT_ADDRESS = lower('0x94e496474F1725f1c1824cB5BDb92d7691A4F03a')
-- --order by 2 DESC
-- --, last_activity_block_timestamp::date
select * from ethereum.core.fact_token_transfers
where TX_HASH = lower('0x7214713075c5de2e68badb46c91a8418fdf914406fea466683f231c47ae85d52')
and block_timestamp::date = '2022-08-23'::date
select * from ethereum.core.fact_token_transfers
where contract_address = lower('0x94e496474F1725f1c1824cB5BDb92d7691A4F03a')
and FROM_ADDRESS = lower('0x0000000000000000000000000000000000000000')
and block_timestamp::date = '2022-08-23'
select * from
(select sum(raw_amount/pow(10,18)) as claimed from
ethereum.core.fact_token_transfers
where contract_address = lower('0x94e496474F1725f1c1824cB5BDb92d7691A4F03a')
and FROM_ADDRESS = lower('0x0000000000000000000000000000000000000000')
LEFT JOIN
select sum(raw_amount/pow(10,18)) as burnt from
ethereum.core.fact_token_transfers
where contract_address = lower('0x94e496474F1725f1c1824cB5BDb92d7691A4F03a')
and TO_ADDRESS = lower('0x0000000000000000000000000000000000000000')) a
with sent_tokens as
(select block_timestamp::date as day1,
sum(raw_amount/pow(10,18)) as xMETRIC
Run a query to Download Data