Introduction
Introduction
GraphQL is a query language for APIs and a runtime for executing those queries by using a type system you define for your data. It was developed by Facebook in 2012 and released as an open-source project in 2015.
Why GraphQL?
Due to the complex nature of the blockchain data, GraphQL is a perfect fit for querying and retrieving data from the blockchain.
It allows you to query the data you need in a single request. You can for example query a block and its transaction, or a transaction and its logs, or a token and its holders, all of this in the same context. It’s a perfect fit for building advanced usage of the blockchain data.