# Midnight Indexer v4.1.0 release notes

> For the complete documentation index, see [llms.txt](https://docs.midnight.network/llms.txt)

* **Version**: v4.1.0
* **Date**: April 20, 2026
* **Paired node**: 1.0.0 (Node 0.20 and 0.21 support removed)
* **Paired ledger**: 8.1
* **API version**: v4

***

## High-level summary[​](#high-level-summary "Direct link to High-level summary")

Midnight Indexer 4.1.0 is the first release on the development line that pairs with Node 1.0.0 and ledger 8.1. It adds the queries and subscriptions wallets need to sync shielded and DUST state efficiently, exposes a `fee` field on transactions (deprecating `estimatedFees` and the `fees` wrapper), introduces DataLoader batching for the most common lookups, and drops support for Node 0.20 and 0.21.

Operators on Node 0.22.x should stay on the 4.0.x maintenance line.

***

## Audience[​](#audience "Direct link to Audience")

This release note is relevant for:

* Operators running the Midnight Indexer against Node 1.0.0
* Wallet developers syncing shielded and DUST state through the Indexer API
* DApp developers reading transaction fees from the Indexer API

***

## What changed[​](#what-changed "Direct link to What changed")

* Added the `zswapMerkleTreeCollapsedUpdate` query ([#982](https://github.com/midnightntwrk/midnight-indexer/pull/982)) and the Zswap Merkle tree root on `Block` ([#988](https://github.com/midnightntwrk/midnight-indexer/pull/988))
* Added efficient dust wallet synchronisation endpoints ([#980](https://github.com/midnightntwrk/midnight-indexer/pull/980)) with per-generation capacity calculation and cursor pagination ([#997](https://github.com/midnightntwrk/midnight-indexer/pull/997))
* Added the `shieldedNullifierTransactions` subscription ([#996](https://github.com/midnightntwrk/midnight-indexer/pull/996))
* Added a `fee` field on transactions and deprecated `estimatedFees` and the `fees` wrapper ([#1036](https://github.com/midnightntwrk/midnight-indexer/pull/1036)); fees are computed with the ledger's `Transaction::fees()` API ([#1031](https://github.com/midnightntwrk/midnight-indexer/pull/1031))
* Supported Node 1.0 ([#985](https://github.com/midnightntwrk/midnight-indexer/pull/985)) and ledger 8.1 ([#1033](https://github.com/midnightntwrk/midnight-indexer/pull/1033)); removed support for Node 0.20 and 0.21 ([#986](https://github.com/midnightntwrk/midnight-indexer/pull/986), [#1042](https://github.com/midnightntwrk/midnight-indexer/pull/1042))
* Introduced DataLoader batching for block-by-hash, transactions-by-block, transaction-by-id and contract-actions-by-transaction lookups ([#1018](https://github.com/midnightntwrk/midnight-indexer/pull/1018), [#1022](https://github.com/midnightntwrk/midnight-indexer/pull/1022), [#1027](https://github.com/midnightntwrk/midnight-indexer/pull/1027), [#1030](https://github.com/midnightntwrk/midnight-indexer/pull/1030))
* Aligned `dustCommitmentMerkleTreeUpdate` with the `zswapMerkleTreeCollapsedUpdate` pattern ([#1023](https://github.com/midnightntwrk/midnight-indexer/pull/1023))
* Logged the wallet ID on `connect` and `disconnect` mutations ([#935](https://github.com/midnightntwrk/midnight-indexer/pull/935)) and bridged async-graphql tracing to fastrace ([#1037](https://github.com/midnightntwrk/midnight-indexer/pull/1037))

***

## New features[​](#new-features "Direct link to New features")

### Zswap Merkle tree collapsed update[​](#zswap-merkle-tree-collapsed-update "Direct link to Zswap Merkle tree collapsed update")

The `zswapMerkleTreeCollapsedUpdate` query returns a collapsed Merkle tree update between two indexes, so a wallet can bring its local Zswap tree up to date without replaying every transaction. `Block` now also carries the Zswap Merkle tree root.

### Dust wallet synchronisation endpoints[​](#dust-wallet-synchronisation-endpoints "Direct link to Dust wallet synchronisation endpoints")

New endpoints let a wallet sync DUST generation state efficiently, with per-generation capacity calculation and cursor pagination.

### `shieldedNullifierTransactions` subscription[​](#shieldednullifiertransactions-subscription "Direct link to shieldednullifiertransactions-subscription")

Wallets can subscribe to transactions that spend nullifiers matching a set of prefixes, instead of scanning every shielded transaction.

### `fee` on transactions[​](#fee-on-transactions "Direct link to fee-on-transactions")

`Transaction` gains a `fee` field computed with the ledger's own fee API. `estimatedFees` and the `fees` wrapper are deprecated and remain available for one release cycle.

***

## Breaking changes[​](#breaking-changes "Direct link to Breaking changes")

* Node 0.20 and 0.21 are no longer supported. Operators on those node versions cannot run 4.1.0.
* `estimatedFees` and the `fees` wrapper are deprecated in favour of `fee`. They still resolve in this release.

***

## Bug fixes[​](#bug-fixes "Direct link to Bug fixes")

* Chain indexer falls back to the metadata of the parent block when a block carries none ([#970](https://github.com/midnightntwrk/midnight-indexer/pull/970))
* Standalone SQLite SPO queries match the PostgreSQL results ([#977](https://github.com/midnightntwrk/midnight-indexer/pull/977))
* Added `start_period` to the PostgreSQL healthcheck in docker-compose ([#936](https://github.com/midnightntwrk/midnight-indexer/pull/936))
* Avoided unnecessary scans of shielded transactions ([#1039](https://github.com/midnightntwrk/midnight-indexer/pull/1039))

***

## Links and references[​](#links-and-references "Direct link to Links and references")

* **GitHub release**: [v4.1.0 on GitHub](https://github.com/midnightntwrk/midnight-indexer/releases/tag/v4.1.0)
* **Full changelog**: [CHANGELOG.md at v4.1.0](https://github.com/midnightntwrk/midnight-indexer/blob/v4.1.0/CHANGELOG.md)
* **Schema**: [Indexer API v4 schema](https://github.com/midnightntwrk/midnight-indexer/blob/v4.1.0/indexer-api/graphql/schema-v4.graphql)
* **API reference**: [Midnight Indexer API v4](https://docs.midnight.network/api-reference/midnight-indexer.md)
* **Docker images**: [Chain Indexer](https://hub.docker.com/r/midnightntwrk/chain-indexer), [Indexer API](https://hub.docker.com/r/midnightntwrk/indexer-api), [Wallet Indexer](https://hub.docker.com/r/midnightntwrk/wallet-indexer), [Indexer Standalone](https://hub.docker.com/r/midnightntwrk/indexer-standalone)
