Skip to content

Commit 10e931b

Browse files
authored
Moved Block explorers section; added Dune section
- Moved `Block explorers` section to be ahead of The Graph because it is one of the prerequisites. - Added a section for Dune Analytics, a representative approach to on-chain data analytics that is different from the Graph protocol
1 parent ffba6a8 commit 10e931b

File tree

1 file changed

+10
-3
lines changed
  • src/content/developers/docs/data-and-analytics

1 file changed

+10
-3
lines changed

src/content/developers/docs/data-and-analytics/index.md

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,20 +17,27 @@ You should understand the basic concept of [Block Explorers](/developers/docs/da
1717

1818
In terms of architectural fundamentals, understanding what an [API](https://www.wikipedia.org/wiki/API) and [REST](https://www.wikipedia.org/wiki/Representational_state_transfer) are, even in theory.
1919

20+
## Block explorers {#block-explorers}
21+
22+
Many [Block Explorers](/developers/docs/data-and-analytics/block-explorers/) offer [RESTful](https://www.wikipedia.org/wiki/Representational_state_transfer) [API](https://www.wikipedia.org/wiki/API) gateways that will provide developers visibility into real-time data on blocks, transactions, miners, accounts, and other on-chain activity.
23+
24+
Developers can then process and transform this data to give their users unique insights and interactions with the [blockchain](/glossary/#blockchain).
25+
2026
## The Graph {#the-graph}
2127

2228
The [Graph Network](https://thegraph.com/) is a decentralized indexing protocol for organizing blockchain data. Instead of building and managing off-chain and centralized data stores to aggregate on-chain data, with The Graph, developers can build serverless applications that run entirely on public infrastructure.
2329

2430
Using [GraphQL](https://graphql.org/), developers can query any of the curated open APIs, known as sub-graphs, to acquire the necessary information they need to drive their dapp. By querying these indexed sub-graphs, Reports and dapps not only get performance and scalability benefits but also the built in accuracy provided by network consensus. As new improvements and/or sub-graphs are added to the network, your projects can rapidly iterate to take advantage of these enhancements.
2531

26-
## Block explorers {#block-explorers}
32+
## Dune Analytics {#dune-analytics}
2733

28-
Many [Block Explorers](/developers/docs/data-and-analytics/block-explorers/) offer [RESTful](https://www.wikipedia.org/wiki/Representational_state_transfer) [API](https://www.wikipedia.org/wiki/API) gateways that will provide developers visibility into real-time data on blocks, transactions, miners, accounts, and other on-chain activity.
34+
[Dune Analytics](https://dune.com/) pre-processes blockchain data into relational database (PostgreSQL and DatabricksSQL) tables, allows users to query blockchain data using SQL and build dashboards based on query results. On-chain data are organized into 4 raw tables: `blocks`, `transactions`, (event) `logs` and (call) `traces`. Popular contracts and protocols have been decoded and each have their own set of event and call tables. Those event and call tables are processed further and organized into abstraction tables by the type of protocols, for example, dex, lending, stablecoins, etc.
2935

30-
Developers can then process and transform this data to give their users unique insights and interactions with the [blockchain](/glossary/#blockchain).
36+
Besides the Ethereum Mainnet, Dune support Arbitrum, Avalanche, BNB Chain, xDAI, Optimism, and Polygon. Solana support is provided by the new Dune v2 query engine. Dune users can create public queries and dashboard free of charge; besides creating private queries and dashboards, paid users can download query results in CSV format. Dune doesn't yet provide API access.
3137

3238
## Further Reading {#further-reading}
3339

3440
- [Graph Network Overview](https://thegraph.com/docs/en/about/network/)
3541
- [Graph Query Playground](https://thegraph.com/explorer/subgraph/graphprotocol/graph-network-mainnet?version=current)
3642
- [API code examples on EtherScan](https://etherscan.io/apis#contracts)
43+
- [Dune Basics](https://docs.dune.com/#dune-basics)

0 commit comments

Comments
 (0)