banterlyticsbanana net change copy
Updated 2023-04-13
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 round(supply) as "Total Supply",
round(cric) as "Circulated Supply",
round(burnt) as "Burnt"
FROM
(with all_tx as (
select date_trunc('day', block_timestamp::date) as dt,
tx_hash, to_address, from_address, raw_amount/pow(10,18) as amounts
from ethereum.core.fact_token_transfers
where block_timestamp > '2022-01-01'
and contract_address = lower('0x94e496474F1725f1c1824cB5BDb92d7691A4F03a')
union all
select date_trunc('day', block_timestamp::date) as dt,
tx_hash, to_address, from_address, raw_amount/pow(10,18) as amounts
from polygon.core.fact_token_transfers
where block_timestamp > '2022-02-28'
and contract_address = lower('0xbC91347e80886453F3f8bBd6d7aC07C122D87735')),
transfers as
((SELECT
to_address as wallet,
dt,
'mint' as action,
amounts as value
FROM all_tx
where from_address = '0x0000000000000000000000000000000000000000')
union all
(SELECT
to_address as wallet,
dt,
'gain' as action,
amounts as value
FROM all_tx
where from_address != '0x0000000000000000000000000000000000000000')
union all
Run a query to Download Data