ERC-8329 · Last Call · ERC · 2026-07-05
ERC-8329: Subject-Linked Impact Snapshot Log
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)):
valueis anint256with explicitdecimals(impact can be negative), so the quantity isvalue × 10^-decimals;unitis usuallykeccak256of a unit string ("tCO2e","kWh","m3", …);methodologyHash(keccak of the exact methodology document) and a non-emptymethodologyURIare 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):
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 viaactiveMethodology/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):
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,decimalsand 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.