midnight-indexer:event-subscriptions

Subscribe to real-time Midnight Network blockchain events via WebSocket.

Updated Feb 5, 2026
One-click install
npx skills add https://github.com/aaronbassett/midnight-knowledgebase --skill midnight-indexer-event-subscriptions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: midnight-indexer:event-subscriptions
Source: https://github.com/aaronbassett/midnight-knowledgebase/tree/main/plugins/midnight-indexer/skills/event-subscriptions
Command: npx skills add https://github.com/aaronbassett/midnight-knowledgebase --skill midnight-indexer-event-subscriptions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Subscribes to real-time blockchain events from the Midnight Network, enabling live data delivery via WebSocket subscriptions for dashboards, alerts, and reactive services.

Core Features & Use Cases

  • Real-time event streaming for newTransaction, newBlock, contractStateChange, and utxo changes across networks.
  • Build live dashboards, push notifications, and automated alerts driven by event streams.
  • Use Case: Monitor contract state changes and transaction activity for a given address to trigger downstream workflows.

Quick Start

Create a WebSocket client connected to the Midnight indexer and subscribe to an event stream for a given address.

Frequently Asked Questions about midnight-indexer:event-subscriptions

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I stream real-time Midnight blockchain events via WebSocket?

To stream real-time Midnight blockchain events via WebSocket, you connect a GraphQL WebSocket client to the Midnight indexer and subscribe to event streams like newTransaction, newBlock, contractStateChange, and utxo changes.

What types of blockchain events can I subscribe to on the Midnight Network?

You can subscribe to newTransaction, newBlock, contractStateChange, and utxo change events on the Midnight Network. These real-time blockchain event subscriptions allow you to track transaction activity and monitor contract state changes for specific addresses.

How do I build live dashboards and alerts using Midnight indexer subscriptions?

Build live dashboards and alerts by subscribing to real-time Midnight indexer event streams via WebSocket. This delivers continuous updates for newBlock, newTransaction, and contractStateChange events, triggering downstream workflows and push notifications automatically.

Does the Midnight indexer GraphQL WebSocket subscription support automatic reconnection?

Yes, the Midnight indexer GraphQL WebSocket subscription supports automatic reconnection. It also includes keep-alive signals and cursor-based replay, ensuring resilient event streams for continuous real-time blockchain monitoring without data loss.

What do I need to set up a WebSocket subscription for Midnight contract state changes?

To set up a WebSocket subscription for Midnight contract state changes, you need a GraphQL WebSocket client. Connect it to the Midnight indexer endpoint to start receiving real-time event streams tracking specific addresses and utxo modifications.