1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-11-26 19:49:26 +01:00

GITBOOK-22: Adding a section on the Indexer

This commit is contained in:
Jamie Hewitt 2024-07-23 14:07:06 +00:00 committed by gitbook-bot
parent e0da1fafd9
commit 61d5420f01
No known key found for this signature in database
GPG Key ID: 07D2180C7B12D0FF

View File

@ -26,7 +26,14 @@ For details on how to run a node see the [readme](https://github.com/oceanprotoc
#### Ocean Node replaces Aquarius: <a href="#what-does-aquarius-do" id="what-does-aquarius-do"></a> #### Ocean Node replaces Aquarius: <a href="#what-does-aquarius-do" id="what-does-aquarius-do"></a>
1. Acts as a cache for on-chain data. It stores the metadata from the smart contract events off-chain in a Typesense database. * Acts as a cache for on-chain data. It stores the metadata from the smart contract events off-chain in a Typesense database.
2. Monitors events: It continually checks for MetadataCreated and MetadataUpdated events, processing these events and updating them in the database. * Monitors events: It continually checks for MetadataCreated and MetadataUpdated events, processing these events and updating them in the database.
3. Serves as an API: It provides a REST API that fetches data from the off-chain datastore. * Serves as an API: It provides a REST API that fetches data from the off-chain datastore.
4. Offers easy query access: The API provides a convenient method to access metadata without needing to scan the blockchain. * Offers easy query access: The API provides a convenient method to access metadata without scanning the blockchain.
**Ocean Node replaces the Subgraph:**
* Indexing the data from the smart contact events.
* The data is indexed and updated in real-time.&#x20;
* Providing an API which receives and responds to queries.
* Simplifying the development experience for anyone building on Ocean.&#x20;