xchain-midgard-query
Last updated
Last updated
This section for the XChain Midgard Query library elucidates the operational workflow and underlying mechanisms utilized to interact with the Midgard API and retrieve blockchain data.
The Midgard-query module utilizes the Midgard API to query the THORChain network. Midgard is a layer 2 REST API that offers front-end consumers semi real-time aggregated data and analytics. It serves as a buffer to handle most network requests, relieving the blockchain from processing large quantities of queries and allowing it to focus on transaction processing.
Essentially, Midgard acts as a "read-only slave" to the chain, optimizing network resources.
For more information about the API of the package, please click