---
eip: 8329
label: ERC-8329
title: Subject-Linked Impact Snapshot Log
status: Last Call
type: Standards Track
category: ERC
created: 2026-07-05
requires: 165
official: https://eips.ethereum.org/EIPS/eip-8329
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-8329.md
canonical: https://eips.huatuo.xyz/eip-8329/
lang: en
tldr: A standard append-only log for reporting impact figures such as emissions, energy or jobs per subject and period, with a committed methodology, linear correction chains and optional endorsements or disputes.
tags: [impact, reporting, attestations, sustainability, data]
---

# ERC-8329: Subject-Linked Impact Snapshot Log

> Defines append-only subject-linked impact snapshots with correction provenance, methodology versioning, and attestations

**TL;DR:** A standard append-only log for reporting impact figures such as emissions, energy or jobs per subject and period, with a committed methodology, linear correction chains and optional endorsements or disputes.

## What problem does it solve?

Impact numbers (carbon emitted or offset, energy generated, water treated, jobs created, hectares protected…) are usually published in PDFs or one-off data formats. On-chain, there was no common interface tying such a value to *who or what* it is about, *which period* it covers, *what unit* it is in, and *how* it was calculated.

A single mutable value is not enough either: overwriting it erases what was claimed before and cannot tell a new reporting period apart from a restatement of an old one. ERC-8329 defines an append-only snapshot log that keeps the full history, including corrections.

## How it works

**Snapshots.** `recordSnapshot` stores one value for `(subjectId, indicatorId, [periodStart, periodEnd))`:

- `value` is an `int256` with explicit `decimals` (impact can be negative), so the quantity is `value × 10^-decimals`;
- `unit` is usually `keccak256` of a unit string (`"tCO2e"`, `"kWh"`, `"m3"`, …);
- `methodologyHash` (keccak of the exact methodology document) and a non-empty `methodologyURI` are mandatory;
- only completed periods are accepted (`periodEnd <= block.timestamp`), and only authorised reporters may write.

**One original per exact period.** A second report for the same subject, indicator and period must be a **correction**: it points `correctsIndex` at the snapshot it replaces, which gets `correctedByIndex` set. Each snapshot can be corrected once, so chains are linear, never forked. `currentSnapshotForPeriod` returns the end of the chain; `latestIndicatorSnapshot` only reflects recording order.

**Standard identifiers.** The spec defines indicators such as `keccak256("ERC-8329:INDICATOR:CARBON_EMITTED")` and a pattern for custom ones.

**Optional extensions** (detected via [ERC-165](/eip-165/)):

- `IImpactAttestation`: anyone authorised other than the reporter address can append an endorsement or dispute with an evidence hash. Attestations are never edited or deleted.
- `IMethodologyVersioning`: a governed switch to a new methodology, effective immediately or from a future indicator ordinal, discoverable via `activeMethodology` / `pendingMethodology`. Recalculated history must be submitted as corrections.

## Sample code

Recording an annual emissions figure, then reading the current value for that year (ethers v6):

```ts
import { Contract, id, formatUnits } from "ethers";

const abi = [
  "function recordSnapshot(bytes32,bytes32,int256,uint8,bytes32,uint64,uint64,bytes32,string,uint256) returns (uint256)",
  "function currentSnapshotForPeriod(bytes32,bytes32,uint64,uint64) view returns (uint256)",
  "function getSnapshot(bytes32,uint256) view returns (tuple(bytes32 subjectId,bytes32 indicatorId,int256 value,uint8 decimals,bytes32 unit,uint64 periodStart,uint64 periodEnd,bytes32 methodologyHash,string methodologyURI,address reportedBy,uint64 reportedAt,uint256 correctsIndex,uint256 correctedByIndex))",
];
const log = new Contract(LOG_ADDRESS, abi, reporter);

const NO_CORRECTION = 2n ** 256n - 1n;
const CARBON_EMITTED = id("ERC-8329:INDICATOR:CARBON_EMITTED");
const UNIT_TCO2E = id("tCO2e");
const [start, end] = [1735689600n, 1767225600n]; // [2025-01-01, 2026-01-01) UTC

await log.recordSnapshot(
  subjectId, CARBON_EMITTED, 12345n, 1, UNIT_TCO2E, // 1234.5 tCO2e
  start, end, methodologyHash, "ipfs://<cid>", NO_CORRECTION,
);

const idx = await log.currentSnapshotForPeriod(subjectId, CARBON_EMITTED, start, end);
const s = await log.getSnapshot(subjectId, idx);
console.log(formatUnits(s.value, s.decimals), "tCO2e");
```

## Things to know

- Status is **Last Call** (the spec's deadline is 2026-10-19), so the interface may still receive final changes.
- The log proves *who* reported a value, not that it is true. It does not validate measurements, credential reporters or attestors, or compute any score.
- Overlapping periods, related indicators and separate registries can describe the same real-world impact; aggregate with care to avoid double counting.
- Always check `unit`, `decimals` and sign, and verify the methodology document against its hash.
- Data on a public chain is public: use opaque subject IDs and keep sensitive evidence off-chain.


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-8329
