- 通过node、java项目实时解析geth节点的以太坊基础数据并同步到maxCompute
- 通过对已有的maxCompute表进行二次加工,产出有用分析中间表、结果表
- 目前社区在不断的建设过程中,进度、质量都在不断向前,希望更多的社区成员参与进来
- 数据建设参与流程,可参考
说明:块信息表,每个分区为从创世块到当日的全量块信息(优先使用最新分区)
maxCompute表:web3_maxcompute.ethereum_blocks
时效性:T+1
实时进度:起始~2022-09
| Column name | Data type | Description |
|---|---|---|
| block_number | bigint | 块高 |
| block_hash | string | 当前块标 |
| parent_block_hash | string | 上一个块标 |
| gas_limit | bigint | gas上限 |
| gas_used | bigint | 使用的gas |
| base_fee_per_gas | bigint | 块基础费用 (参考 EIP1559) |
| size | bigint | 字节为单位的块大小 (被gas上限限制) |
| miner | string | 矿工地址 |
| nonce | bigint | 挖坑难度证明 |
| timestamp | datetime | 块时间 |
| transactions_count | bigint | 交易数 |
| pt | string | 日期分区(yyyymmdd) |
说明:交易信息表,全量表
maxCompute表:web3_maxcompute.ethereum_transactions
时效性:T+1
实时进度:起始~2021-05
| Column name | Data type | Description |
|---|---|---|
| transaction_hash | string | 交易标识 |
| transaction_index | bigint | 块内的交易序号 |
| block_number | bigint | 块高 |
| block_hash | string | 块标 |
| block_timestamp | datetime | 块时间 |
| from | string | 发送地址 |
| to | string | 接受地址 |
| value | decimal(38,18) | wei 单位的数量 |
| input | string | 附带信息 |
| gas_used | decimal(38,18) | 使用的gas |
| gas_price | decimal(38,18) | wei单位的gas价格 |
| max_fee_per_gas | decimal(38,18) | 用户愿意支付的每个gas的最大费用 |
| max_priority_fee_per_gas | decimal(38,18) | 用户愿意支付给矿工的每个gas的最大费用 |
| effective_gas_price | decimal(38,18) | 实际gas价格 |
| cumulative_gas_used | decimal(38,18) | 块内到当前交易累计使用gas |
| success | bigint | 是否成功 |
| nonce | bigint | 随机数 |
| type | string | 类型: Legacy, AccessList, DynamicFee |
| access_list | string | 打算访问的地址列表(参考 EIP2930) |
说明:合约事件日志表,全量表
maxCompute表:web3_maxcompute.ethereum_logs
时效性:T+1
实时进度:起始~2020-11
| Column name | Data type | Description |
|---|---|---|
| log_id | bigint | 主键 |
| log_index | bigint | 块内日志序号 |
| transaction_hash | string | 交易标识 |
| transaction_index | bigint | 块内的交易序号 |
| block_number | bigint | 块高 |
| block_hash | string | 块标识 |
| block_timestamp | datetime | 出块时间 |
| contract_address | string | 合约地址 |
| data | string | 事件包含的非索引数据 |
| topics_count | bigint | 索引数据数量 |
| topic_1 | string | 事件描述 |
| topic_2 | string | 第二个索引数据 |
| topic_3 | string | 第三个索引数据 |
| topic_4 | string | 第四个索引数据 |
说明:合约内部交易表,全量表
maxCompute表:web3_maxcompute.ethereum_traces
时效性:T+1
实时进度:待更新
| Column name | Data type | Description |
|---|---|---|
| trace_id | bigint | 主键 |
| trace_address | string | 树地址 |
| trace_children_count | bigint | 树子节点数量 |
| trace_success | bigint | 是否成功 |
| transaction_hash | string | 交易标识 |
| transaction_index | bigint | 块内的交易序号 |
| transaction_success | bigint | 交易是否成功 |
| block_number | bigint | 块高 |
| block_hash | string | 块标识 |
| block_timestamp | datetime | 块时间 |
| type | string | 动作类型,reward, create, call or suicide |
| from | string | 发送地址 |
| to | string | 接受地址 |
| value | decimal(38,18) | wei 单位的数量 |
| gas_limit | decimal(38,18) | gas限制 |
| gas_used | decimal(38,18) | 使用的gas |
| input | string | 调用其他合约的输入值 |
| output | string | 调用其他合约的返回值 |
| method_id | string | 调用其他合约方法id |
| error | string | 报错信息 |
说明:token价格表(日维度)
maxCompute表:web3_maxcompute.token_price
时效性:T+1
polar-mysql表:blockchain.price_1d
时效性:1h
实时进度:2020-04~至今
| Column name | Data type | Description |
|---|---|---|
| date | string | 数据日期 |
| source | string | 数据来源 |
| symbol | string | 交易对 |
| open_time | datetime | k线开盘时间 |
| close_time | datetime | k线收盘时间 |
| open | decimal(38,18) | 开盘价 |
| height | decimal(38,18) | 最高价 |
| low | decimal(38,18) | 最低价 |
| close | decimal(38,18) | 收盘价(当前K线未结束的即为最新价) |
| volume | decimal(38,18) | 成交量 |
| turnover | decimal(38,18) | 成交额 |
| trading_volume | decimal(38,18) | 成交笔数 |
| buying_volume | decimal(38,18) | 主动买入成交量 |
| buying_turnover | decimal(38,18) | 主动买入成交额 |
说明:有过交易记录的地址资产表(日维度)
maxCompute表:web3_maxcompute.ethereum_balances
时效性:T+1
实时进度:待更新
| Column name | Data type | Description |
|---|---|---|
| wallet_address | string | 钱包地址 |
| amount | decimal(38,4) | eth 余额 |
| amount_raw | decimal(38,0) | wei 单位的余额 |
| amount_usd | decimal(38,6) | 美元计价余额 |
| pt | string | 日期分区(yyyymmdd) |
说明:当日有余额变动的地址资产表(日维度)
maxCompute表:web3_maxcompute.ethereum_balance_di
时效性:T+1
实时进度:待更新
| Column name | Data type | Description |
|---|---|---|
| id | bigint | 主键 |
| address | string | 地址 |
| time | datetime | 区块时间 |
| amount | decimal(38,4) | 余额 |
| amount_raw | decimal(38,0) | wei单位的余额 |
| created | datetime | 创建时间 |
| pt | string | 日期分区(yyyymmdd) |
说明:以太坊 POS 信标链指标表(日维度)
maxCompute表:web3_maxcompute.ethereum_beacon_data
时效性:T+1(部分数据滞后一年)
实时进度:待更新
| Column name | Data type | Description |
|---|---|---|
| id | bigint | 主键 |
| timestamp | datetime | 日期 |
| active_validators | int | 活跃的验证者 |
| deposits_count | int | 新的32ETH质押存款交易数量 |
| avg_effective_balance | decimal | 平均有效余额 |
| effective_balance_sum | int | 总有效余额 |
| epoch_height | int | 纪元高度 |
| est_annual_roi_validator | decimal | 验证者预估年度发行投资回报率 |
| participation_rate | decimal | 参与率 |
| total_deposits_count | int | ETH2存款合约的交易总数 |
| total_validators_count | int | ETH2验证者总数 |
| total_volume_sum | int | ETH2存款合约上的余额 |
| new_validators_count | int | 向ETH2存款合约存入32ETH的新地址数量 |
| new_volume_sum | int | 新存入ETH2存款合约的ETH数量 |
| avg_validator_balance | decimal | 验证者的平均总质押余额 |
| voluntary_exit_count | int | 自愿退出验证者池的验证者总数 |
说明:erc20的基本信息
maxCompute表:web3_maxcompute.ethereum_erc20
时效性:T+1
polar-mysql表:blockchain.ethereum_erc20
时效性:1h
实时进度:实时
| Column name | Data type | Description |
|---|---|---|
| contract_address | string | 合约地址 |
| name | string | 名称 |
| symbol | string | 标识 |
| decimals | bigint | 精度 |
| is_stable | bigint | 是否稳定币 |
| deployer | string | 部署地址 |
| deploy_time | datetime | 部署时间 |
| creation_transaction_hash | string | 创建的交易哈希 |
| description | string | 描述 |
| total_supply | decimal(38,0) | 总供给 |
| circulating_supply | decimal(38,0) | 流通供给 |
| market_cap_usd_latest | decimal(30,8) | 美元市值 |
| volume_usd_24h | decimal(30,8) | 近24小时流通量 |
| last_updated | datetime | 最新更新时间 |
说明:erc20资产表(日维度)
maxCompute表:web3_maxcompute.ethereum_erc20_balance
时效性:T+1
实时进度:起始 ~ 2020-11
| Column name | Data type | Description |
|---|---|---|
| contract_address | string | 合约地址 |
| owner | string | 账户地址 |
| amount_raw | decimal(38,0) | 余额 |
| amount_usd | decimal(30,8) | 美元单位余额 |
说明:erc20转交事件(日维度)
maxCompute表:web3_maxcompute.ethereum_erc20_event_transfer
时效性:T+1
实时进度:起始 ~ 2020-11
| Column name | Data type | Description |
|---|---|---|
| id | bigint | 主键 |
| contract_address | string | 合约地址 |
| from | string | 发送地址 |
| to | string | 接受地址 |
| value | decimal(38,18) | wei 单位的数量 |
| block_number | bigint | 块高 |
| block_timestamp | datetime | 出块时间 |
| transaction_index | bigint | 块内的交易序号 |
| transaction_hash | string | 交易标识 |
| log_index | bigint | 块内日志序号 |
说明:erc20许可事件(日维度)
maxCompute表:web3_maxcompute.ethereum_erc20_event_approval
时效性:T+1
实时进度:起始 ~ 2020-11
| Column name | Data type | Description |
|---|---|---|
| id | bigint | 主键 |
| contract_address | string | 合约地址 |
| owner | string | 授权地址 |
| spender | string | 被授权地址 |
| value | decimal(38,18) | wei 单位的数量 |
| block_number | bigint | 块高 |
| block_timestamp | datetime | 出块时间 |
| transaction_index | bigint | 块内的交易序号 |
| transaction_hash | string | 交易标识 |
| log_index | bigint | 块内日志序号 |
说明:协议内的锁仓量
maxCompute表: 待更新