区块链的原始数据可以通过正常运行区块链程序的节点获取,这些节点可以统称为 Node Provider。目前市面上知名的节点服务商有 Alchemy、Infura 等,它们捕获链上数据并以 API 的方式提供给用户。本文以以太坊的数据为例(其他公链的数据结构类似),文章中的分析数据源来自 Dune 以及 EtherScan。Node Provider 提供的原始数据是经过 hash 的字节码(以以太坊为例,hash 算法采用的是 keccak256 algorithm )。Dune 引擎将得到原始数据进行了加工处理,得到 Raw Data Table,包括:transactions、logs、traces 和 blocks,这些原始数据表可以视为区块链中最基础的数据表。TransactionTransaction 是区块链中最基础的数据结构,我们与链上的每一次交互,最终都会体现为一条 Transaction 记录。Transactions 数据结构Transactions 表是 Dune 对链上 transaction 原始数据处理后得到的 Raw Data Table,共 10+...