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:
parent
e0da1fafd9
commit
61d5420f01
@ -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. 
|
||||||
|
* Providing an API which receives and responds to queries.
|
||||||
|
* Simplifying the development experience for anyone building on Ocean. 
|
||||||
|
Loading…
Reference in New Issue
Block a user