# 数据和分析学

## 区块浏览器 <a href="#block-explorers" id="block-explorers"></a>

***

许多区块浏览器提供 [RESTful(opens in a new tab)](https://www.wikipedia.org/wiki/Representational_state_transfer) [应用程序接口(opens in a new tab)](https://www.wikipedia.org/wiki/API)网关，它将使开发者可以看见区块上的实时数据、交易、矿工、帐户和其他链上活动。

然后开发者可以处理和转换此数据，让他们的用户有独特的洞察力并与区块链交互。

## GRAPH <a href="#the-graph" id="the-graph"></a>

***

[Graph 网络(opens in a new tab)](https://thegraph.com/)是用于组织区块链数据的去中心化索引协议。 通过 Graph 网络，开发者可以建立完全在公共基础设施上运行的无服务器应用程序，而不是建立和管理链外和集中的数据存储来聚合链上数据。

使用 [GraphQL(opens in a new tab)](https://graphql.org/)，开发人员可以查询任何管理的开放应用程序接口（称为子图），以获取驱动去中心化应用程序所需的信息。 通过查询这些索引子图，报告和去中心化应用程序不仅可以获得性能和可扩展性优势，还可以获得网络共识提供的内置准确性。 当网络中新增改进和/或子图表时，你的项目可以快速迭代，以利用这些增强功能。

## 客户端多样性 <a href="#ke-hu-duan-duo-yang-xing" id="ke-hu-duan-duo-yang-xing"></a>

***

客户端多样性对于KAD网络的整体健康很重要，因为它提供了对错误和漏洞利用的弹性。

## DUNE ANALYTICS <a href="#dune-analytics" id="dune-analytics"></a>

***

[Dune Analytics(opens in a new tab)](https://dune.com/) 对区块链数据进行预处理，并存入关系型数据库（PostgreSQL 和 DatabricksSQL）表中，以便用户可以使用结构化查询语言 (SQL) 查询区块链数据并基于查询结果构建仪表板。 链上数据被组织为 4 个原始表：`blocks`、`transactions`、（事件）`logs` 和（调用）`traces`。 常见的合约和协议都已解码，并且每个都有自己的事件集和调用表。 这些事件和调用表被进一步处理并按协议类型组织成抽象表，例如 DEX、借贷、稳定币等。


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://kademliachain.gitbook.io/kad/shu-ju-he-fen-xi-xue.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
