midnight-indexer:indexer-graphql-api

Official

Query & stream Midnight indexer data

Authordevrelaicom
Version1.0.0
Installs0

System Documentation

What problem does it solve?

The indexer GraphQL API centralizes access to on-chain state, real-time events, and wallet session management so developers can reliably query blocks, transactions, contract actions, and shielded/unshielded activity without building custom indexer infrastructure.

Core Features & Use Cases

  • HTTP query and mutation endpoint for fetching blocks, transactions, contractAction records, and wallet connect/disconnect flows.
  • WebSocket subscriptions (graphql-transport-ws) for blocks, contractActions, shieldedTransactions, unshieldedTransactions, dustLedgerEvents, and zswapLedgerEvents with offset-based resumption.
  • Practical guidance: endpoint URLs for local/preview/preprod, query limits (max complexity 200, max depth 15, 1 MiB body), GraphQL type definitions, error handling patterns, and example HTTP and TypeScript subscription flows for building DApps and monitoring contracts.

Quick Start

Send a GraphQL POST to /api/v4/graphql to fetch the latest block and open a websocket to /api/v4/graphql/ws to subscribe to contract actions.

Dependency Matrix

Required Modules

None required

Components

references

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: midnight-indexer:indexer-graphql-api
Download link: https://github.com/devrelaicom/midnight-expert/archive/main.zip#midnight-indexer-indexer-graphql-api

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.