piperTrippy Wolves - Sales
Updated 2022-09-11
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
›
⌄
SELECT
DATE_TRUNC(transactions.block_timestamp) AS date,
events.tx_hash,
events.origin_to_address AS marketplace,
events.event_inputs:from AS seller,
events.event_inputs:to AS buyer,
events.event_inputs:tokenId AS token,
events.contract_address AS collection,
transactions.matic_value AS price
FROM
polygon.core.fact_event_logs events
JOIN
polygon.core.fact_transactions transactions
ON
events.tx_hash = transactions.tx_hash
WHERE
events.block_timestamp::date >= (CURRENT_DATE - 30)
AND
events.event_inputs:tokenId IS NOT NULL
AND
events.event_name = 'Transfer'
AND
events.tx_status = 'SUCCESS'
AND
events.event_inputs:from <> '0x0000000000000000000000000000000000000000'
AND
events.event_inputs:to <> '0x0000000000000000000000000000000000000000'
AND
transactions.matic_value > 0
AND
events.contract_address = '0x9d5533a41578917ac1ece34078f7b8dd5a24bc7e'
Run a query to Download Data