onchainbrainCombined
Updated 2023-06-14
999
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
--- ARBITRUM
a_transfers AS (
SELECT
block_timestamp,
from_address AS address,
cast(raw_amount as double)*-1 AS amount,
contract_address
FROM arbitrum.core.fact_token_transfers
WHERE contract_address = lower('0x912CE59144191C1204E64559FE8253a0e49E6548')
UNION ALL
SELECT
block_timestamp,
to_address AS address,
cast(raw_amount as double) AS amount,
contract_address
FROM arbitrum.core.fact_token_transfers tr
WHERE contract_address = lower('0x912CE59144191C1204E64559FE8253a0e49E6548')
),
a_pre_bal AS (
SELECT
address,
SUM(amount/power(10,18)) AS total
FROM a_transfers tr
GROUP BY address
),
a_max_supply AS (
SELECT
sum(total) as max_supply
FROM a_pre_bal
Run a query to Download Data