Keyrock[4] Wallet analysis - Chain tot wallets per chain
Updated 2024-02-23
99
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
›
⌄
-- forked from Wallet analysis - Chain tot wallets @ https://flipsidecrypto.xyz/edit/queries/2fd7267f-2fd3-4bbd-840c-efdc8f57e105
with sender_tb as (
SELECT sender as address, destination_chain
FROM ethereum.defi.ez_bridge_activity
WHERE block_timestamp > '{{starting_date}}' AND Destination_chain in ('near', 'solana', 'sui', 'osmosis', 'aptos', 'fantom', 'telos','sei','injective')
),
origin_tb as (
SELECT origin_from_address as address, destination_chain
FROM ethereum.defi.ez_bridge_activity
WHERE block_timestamp > '{{starting_date}}' AND Destination_chain in ('near', 'solana', 'sui', 'osmosis', 'aptos', 'fantom', 'telos','sei','injective')
),
full_tb as (
SELECT * FROM sender_tb
UNION ALL
SELECT * FROM origin_tb
)
SELECT destination_chain, count(DISTINCT address) as number_of_bridgers
FROM full_tb
GROUP BY destination_chain
order by number_of_bridgers desc
QueryRunArchived: QueryRun has been archived