.............................................................. : : : : : : : : : : : : :............................................................:
____ _ _ _ / ___| |__ __ _(_)_ __ __ _ _ __ __ _ _ __ | |__ | | | '_ \ / _` | | '_ \ / _` | '__/ _` | '_ \| '_ \ | |___| | | | (_| | | | | | (_| | | | (_| | |_) | | | | \____|_| |_|\__,_|_|_| |_|\__, |_| \__,_| .__/|_| |_| |___/ |_|
Chaingraph is a multi-node blockchain indexer and GraphQL API.
Chaingraph provides an intuitive GraphQL API with support for efficient, nested queries and powerful blockchain analysis. And any query can be a live subscription, able to horizontally scale to millions of subscribers.
Request precisely what you need in a single query, saving bandwidth and eliminating client-side data manipulation. Try some examples below.
Monitor the mempools of each node connected to Chaingraph, returning the unconfirmed transaction count and a few fields from the latest 5 transactions in each mempool.
In the Chaingraph GraphQL schema, the transaction
currently has 30 fields. By choosing only fields which are useful to your application, you can reduce bandwidth requirements and avoid the need for data-reformatting logic. See the Get Transaction
example for a sample of other available fields.
subscription MonitorMempools {node {nameuser_agentunconfirmed_transaction_countunconfirmed_transactions(limit: 5,order_by: { validated_at: desc }) {validated_attransaction {hashinput_countoutput_countoutput_value_satoshissize_bytes}}}}
Learn how to deploy and customize your own Chaingraph instance, or experiment with the API in the Chaingraph GraphQL Playground.
Setup GuideTry the API ❯