mz0111weekly report 14
Updated 2023-01-18
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
›
⌄
--credit to https://app.flipsidecrypto.com/dashboard/part-four-of-the-journey-the-arts-district-2MbZXl
with TX AS (
SELECT
blocK_timestamp,
tx_hash,
tx:receipt as receipt,
tx:public_key as public_key,
tx:signer_id as signer_id,
tx:receiver_id as receiver_id
FROM near.core.fact_transactions
WHERE block_timestamp::date >= CURRENT_DATE - 30
),
JSON_PARSING AS (
SELECT
block_timestamp,
tx_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,
tx_hash,
public_key,
signer_id,
receiver_id,
try_parse_json(logs) as parse_logs,
parse_logs:type as type,
Run a query to Download Data