KaskoazulArts District: Highest sales
Updated 2022-07-28
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
32
33
34
35
36
›
⌄
with TX AS (
SELECT
blocK_timestamp,
txn_hash,
tx,
tx:receipt as receipt,
tx:public_key as public_key,
tx:signer_id as signer_id,
tx:receiver_id as receiver_id
--,action_data:deposit/pow(10,24) as deposit, action_data:gas/pow(10,24) as gas*/
FROM flipside_prod_db.mdao_near.transactions
-- WHERE txn_hash = 'AS5QLqtdQKz4fGZeqtBgXHhLbkA1HpVCM4fRaSoBqK5y' -- sale https://paras.id/token/x.paras.near::426086
),
JSON_PARSING AS (
SELECT
block_timestamp,
txn_hash,
public_key,
signer_id,
receiver_id,
seq,key,path,index,
replace(value:outcome:logs[0], '\\') as logs, -- remove // | convert variant | parse json
check_json(logs) as checks
FROM tx,
table(flatten(input => receipt))
),
nft_tx_log AS (
SELECT
--PARSE_JSON(LOGS):PARAMS
block_timestamp,
txn_hash,
public_key,
signer_id,
receiver_id as marketplace,
try_parse_json(logs) as parse_logs,
parse_logs:type as type,
Run a query to Download Data