DeFiScholarSession 2: Tables + block explorer introduction + jsons copy
Updated 2025-03-22
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 sam / Session 2: Tables + block explorer introduction + jsons @ https://flipsidecrypto.xyz/sam/q/hXX-BVVcfNaq/session-2-tables-block-explorer-introduction-jsons
/*
"core" tables or fact tables
ez tables - easy
dim tables
fact blocks - base fee, tx count
fact transactions - to address, tx_fee, tps, gas price
fact event logs - events emitted
fact traces - contracts created
ez dex swaps
ez nft sales
ez decoded event logs
json
case when
lido https://etherscan.io/tx/0x24b74e6486f9d674d5e00864d12792d91c886b0b75e6349a2308087ee0c416fa
swap https://etherscan.io/tx/0x28048dbf44a2f5a90685c260cfcf38c2c6156bac1a5f566ea38d0654295f5a64#eventlog
*/
-- select * from ethereum.nft.ez_nft_sales
-- where block_timestamp::date >= '2025-01-01'
-- and tx_hash = '0xbfc910485de40b669c132e19642a952002028b211df100c1ce8a73c4056b608c'
-- --limit 10
-- decoded event logs table
-- website -> api endpoints
-- contracts -> abi
QueryRunArchived: QueryRun has been archived