Flipside TeamOrdinals Sales Overview
Updated 2024-08-26
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
›
⌄
-- Query: https://flipsidecrypto.xyz/edit/queries/9ef77b48-4996-4e12-b342-0ff86bd45628
-- Analyst: @alitaslimi
with
------------------ Transactions ------------------
transactions as (
select
block_timestamp,
block_number,
tx_id,
inputs,
outputs
from
bitcoin.core.fact_transactions
where
block_number > 767429
and block_timestamp::date between '2023-12-01' and '2024-03-05'
),
------------------------------ Gamma ------------------------------
gamma as (
select
transactions.block_timestamp,
transactions.tx_id,
'Gamma' as marketplace,
transactions.outputs[1]:scriptPubKey:address::string AS buyer,
input3.pubkey_script_address AS seller,
transactions.outputs[2]:value AS amount
from
transactions
join bitcoin.core.fact_inputs input1 on transactions.tx_id = input1.tx_id
join bitcoin.core.fact_inputs input2 on transactions.tx_id = input2.tx_id
join bitcoin.core.fact_inputs input3 on transactions.tx_id = input3.tx_id
join bitcoin.core.fact_inputs input4 on transactions.tx_id = input4.tx_id
where
input1.index = 0
and input2.index = 1
QueryRunArchived: QueryRun has been archived