# Midnight Indexer v4.0.2 release notes

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

* **Version**: v4.0.2
* **Date**: April 23, 2026
* **Paired node**: 0.22.x
* **API version**: v4

***

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

Midnight Indexer 4.0.2 is a patch release on the 4.0.x maintenance line that corrects how transaction fees (`paidFees`) are computed, backporting the fix that shipped on the development line in 4.1.0. Because the correction recomputes fees for already-indexed data, the upgrade requires a reset and re-index.

Upgrading from 4.0.1

Reset the indexer and re-index from genesis when upgrading to 4.0.2. Budget approximately 3 to 4 days at Mainnet or Preprod scale.

***

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

This release note is relevant for:

* Operators running the Midnight Indexer 4.0.x against Node 0.22.x
* Developers reading transaction fee values from the Indexer API

***

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

* Corrected the `paidFees` computation, a backport of [#1031](https://github.com/midnightntwrk/midnight-indexer/pull/1031) and [#1061](https://github.com/midnightntwrk/midnight-indexer/pull/1061) ([#1068](https://github.com/midnightntwrk/midnight-indexer/pull/1068))

***

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

No GraphQL schema changes. The re-index requirement above is operational, not an API change.

***

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

### `paidFees` computation[​](#paidfees-computation "Direct link to paidfees-computation")

Transaction fees are now computed with the ledger's own fee API, so the `paidFees` value returned by the indexer matches what the node charged. Existing index state holds the old values, hence the re-index. ([#1068](https://github.com/midnightntwrk/midnight-indexer/pull/1068))

***

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

* **GitHub release**: [v4.0.2 on GitHub](https://github.com/midnightntwrk/midnight-indexer/releases/tag/v4.0.2)
* **Full changelog**: [CHANGELOG.md at v4.0.2](https://github.com/midnightntwrk/midnight-indexer/blob/v4.0.2/CHANGELOG.md)
* **Schema**: [Indexer API v4 schema](https://github.com/midnightntwrk/midnight-indexer/blob/v4.0.2/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)
