m4ri4ncochoCEXs Netflow copy copy
Updated 2024-04-07
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
›
⌄
-- forked from CEXs Netflow copy @ https://flipsidecrypto.xyz/edit/queries/be70ca68-3616-4b68-9a1b-edaf70ea5e2b TESTING TX COUNT
-- forked from CEXs Netflow @ https://flipsidecrypto.xyz/edit/queries/ed5046ce-d604-4eb5-a16e-afeee9a2bcb0 TESTING THIS QUERY
-- forked from Binance Netflow @ https://flipsidecrypto.xyz/edit/queries/6b70a489-0cb3-4c83-9f3d-11c785d0c2b7
-- BITCOIN DAILY NETFLOW
-- INPUTS
with inputs as (
select
date_trunc('day',block_timestamp) as date,
pubkey_script_address as address,
tx_id
from bitcoin.core.fact_inputs
where date between '2023-03-20' and '2024-03-19'
),
-- OUTPUTS
outputs as (
select
date_trunc('day',block_timestamp) as date,
pubkey_script_address as address,
tx_id
from bitcoin.core.fact_outputs
where date between '2023-03-20' and '2024-03-19'
),
--IMPORT LABELS FROM CHAINLABS
--Kraken
kraken_labels_1 as (
SELECT DISTINCT
QueryRunArchived: QueryRun has been archived