> ## Documentation Index
> Fetch the complete documentation index at: https://docs.dune.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Midnight Data

> Midnight blockchain data on Dune

## What is Midnight?

Midnight is a privacy-focused partner chain of Cardano. It uses zero-knowledge proofs and the Compact language for programmable privacy, with a dual-ledger model that supports both shielded (private) and unshielded (public) state.

Midnight separates value from network capacity: **NIGHT** is the unshielded native utility and governance token, and holding NIGHT generates **DUST**, a shielded, non-transferable resource consumed to pay transaction fees. The network inherits security properties from Cardano through the partner-chain framework while running its own consensus and application layer.

## Key Features

* **Programmable privacy**: Zero-knowledge smart contracts written in Compact
* **Dual ledger**: Shielded and unshielded state on the same network
* **NIGHT + DUST**: NIGHT for utility/governance; DUST for fee payment
* **Cardano partner chain**: Linked to Cardano for settlement and staking-related flows (including cNIGHT registrations)
* **UTXO-style unshielded outputs**: Public UTXO tracking alongside private ledger events

## Midnight Data on Dune

Midnight data on Dune is a custom (non-EVM) schema under `midnight.*`. Tables cover blocks, transactions, ledger events, contract actions, unshielded UTXOs, DUST generation, cNIGHT registrations, and stake-pool / committee metadata.

<CardGroup cols={2}>
  <Card title="Blocks" icon="cube" href="/data-catalog/midnight/blocks">
    Block headers, height, author, and protocol version.
  </Card>

  <Card title="Transactions" icon="arrow-right-arrow-left" href="/data-catalog/midnight/transactions">
    Transaction records linked to blocks, including variant and hash.
  </Card>

  <Card title="Regular Transactions" icon="receipt" href="/data-catalog/midnight/regular_transactions">
    Fee and merkle-tree details for regular (user) transactions.
  </Card>

  <Card title="Ledger Events" icon="bolt" href="/data-catalog/midnight/ledger_events">
    Ledger events emitted by transactions (variant, grouping, attributes).
  </Card>

  <Card title="Contract Actions" icon="file-code" href="/data-catalog/midnight/contract_actions">
    Smart contract actions with address and attributes JSON.
  </Card>

  <Card title="Unshielded UTXOs" icon="coins" href="/data-catalog/midnight/unshielded_utxos">
    Public unshielded UTXO creates and spends.
  </Card>

  <Card title="cNIGHT Registrations" icon="link" href="/data-catalog/midnight/cnight_registrations">
    Cardano ↔ Midnight cNIGHT / DUST address registrations.
  </Card>

  <Card title="DUST Generation Info" icon="battery-full" href="/data-catalog/midnight/dust_generation_info">
    NIGHT UTXO state used for DUST generation.
  </Card>

  <Card title="SPO History" icon="clock-rotate-left" href="/data-catalog/midnight/spo_history">
    Stake pool operator status history by epoch.
  </Card>

  <Card title="SPO Identity" icon="id-card" href="/data-catalog/midnight/spo_identity">
    Stake pool identity keys and pool IDs.
  </Card>

  <Card title="SPO Stake History" href="/data-catalog/midnight/spo_stake_history" icon="chart-line">
    Live and active stake snapshots for pools.
  </Card>

  <Card title="SPO Epoch Performance" icon="chart-simple" href="/data-catalog/midnight/spo_epoch_performance">
    Expected vs produced blocks per SPO per epoch.
  </Card>

  <Card title="Committee Membership" icon="users" href="/data-catalog/midnight/committee_membership">
    Committee membership and expected slots by epoch.
  </Card>

  <Card title="Pool Metadata Cache" icon="database" href="/data-catalog/midnight/pool_metadata_cache">
    Cached pool display metadata (name, ticker).
  </Card>
</CardGroup>

<CardGroup cols={2}>
  <Card title="Midnight documentation" icon="link" href="https://docs.midnight.network/">
    Official Midnight developer and protocol documentation.
  </Card>

  <Card title="Network overview" icon="globe" href="https://midnight.network/overview">
    High-level overview of Midnight network design and tokenomics.
  </Card>
</CardGroup>
