ERC-8527 Serial-numbered ERC-20 token (Serial-Numbered ERC-20 Tokens)
Draft · Tokens · created 2026-11-16
A standard that assigns a unique serial number, like a banknote, to every smallest unit of an ERC-20 token, so that even after splitting and transfers, where that unit went can be tracked on-chain exactly as it is.
Why it is needed
An ERC-20 balance is just a number, so there is no way to ask on-chain 'which unit were these tokens.' This becomes a serious problem when an issuer needs to identify and act on specific funds, for example after a theft. Existing approaches either block an entire address or freeze a certain amount within an address (ERC-3643, ERC-7943), but neither follows the funds themselves. If stolen tokens are split off into a new address or mixed with other funds, there is no way to know which units are the stolen goods, and tracing relies on off-chain conventions such as first-in-first-out or proportional allocation, so different parties reach different conclusions. Physical cash is identified by serial numbers, and UTXO models such as Bitcoin also give each output an identifier, but the identifier changes every time it is spent and input selection happens off-chain, which does not fit transfer(address,uint256), which takes only an amount. Designs that attach identifiers to positions, like ERC-3525, are built on ERC-721, so even though the selectors overlap with ERC-20 the semantics differ, and one contract cannot satisfy both at once; ERC-8047 is built on ERC-1155 and mints a new token id on every transfer, so it cannot be used where ERC-20 is expected. There was a gap for a design where a unit identifier is recorded on-chain and remains unchanged through splits and transfers, while the token still behaves as an ordinary ERC-20.
What to implement
event SliceTransferred(address indexed from, address indexed to, uint256 start, uint256 amount);: Signals that amount consecutive serial numbers starting at start moved holder from from to to.function serialsIssued() external view returns (uint256);: Returns the number of serial numbers issued so far; the next unit to be minted receives this value as its serial number.function sliceCount(address account) external view returns (uint256);: Returns the number of slices (contiguous serial-number ranges) held by account.function sliceAt(address account, uint256 index) external view returns (uint256 start, uint256 amount);: Returns one of the slices held by account as a start and amount.function transferSlices(address to, uint256[] calldata starts, uint256[] calldata amounts) external returns (bool);: Transfers the serial-number slices specified directly by the caller to to.function transferableBalanceOf(address from, address to) external view returns (uint256);: Returns how many of the serial numbers held by from can be transferred to to right now.function defragmentSlices(uint256[] calldata starts, uint256[] calldata amounts) external returns (uint256 newStart);: Consolidates the caller's scattered serial numbers into a single new contiguous slice, performing defragmentation.function consolidatedSpanAt(uint256 serial) external view returns (bool consolidated, uint256 successor, uint256 length);: Returns whether a given serial number received a new number through defragmentation, and if so, that number.function acceptsERC8527Transfer(address operator, address from, uint256 value, uint256 slices) external view returns (bytes4);: The receiving contract responds with whether it accepts the incoming transfer.function freezeSlice(uint256 start, uint256 amount, bytes32 reason) external;: Freezes the serial numbers in the start range for reason.function unfreezeSlice(uint256 start, uint256 amount, bytes32 reason) external;: Unfreezes the serial numbers in the start range for reason.function forcedTransferSlice(address from, address to, uint256 start, uint256 amount) external;: Force-transfers the serial numbers in the start range from from to to without the holder's consent.function destroySlice(address from, uint256 start, uint256 amount) external;: Burns the serial numbers in the start range held by from without the holder's consent.function frozenSpanAt(uint256 serial) external view returns (bool frozen, uint256 length);: Returns whether the given serial number is frozen, and the length of the range sharing that same state.function freezeReasonInfo(bytes32 reason) external view returns (string memory name, string memory uri);: Returns the freeze reason's name and a documentation address so wallets can display the reason.
In depth
Serial number and balance model
Each smallest unit is assigned a serial number issued sequentially starting from 0, and serial numbers are never reused. An issued serial number is always in one of three states: held, destroyed, or consolidated (reassigned a new number through defragmentation). balanceOf(account) must equal the number of serial numbers held by account, and totalSupply() must equal the number of serial numbers that are held, that is, neither destroyed nor consolidated. No operation other than defragmentation changes a unit's serial number itself; it only changes the holder.
ERC-20 behavior requirements
This standard pins down points that ERC-20 leaves open. transfer, transferFrom, and approve must return true on success and must revert rather than return false on failure. The value returned by decimals must not change, and transfer/transferFrom to the zero address must revert. In error conditions defined by ERC-6093, such as insufficient balance or insufficient allowance, it is recommended to revert with the corresponding error, such as ERC20InsufficientBalance, where possible. burn(uint256) and burnFrom(address,uint256), which let a holder burn their own tokens, and burnSlices(uint256[],uint256[]), which burns specific serial numbers directly, may optionally be provided, and these three functions are not included in computing the IERC8527 interface identifier.
Serial-specified transfers and transferable balance
transfer and transferFrom follow a selection rule for which serial numbers to move that is left to the implementation, and implementations are recommended to document that rule. transferSlices, by contrast, lets the holder directly specify, in ascending and non-overlapping order, the slices to send, and reverts entirely if any of the specified serial numbers are not held. transferableBalanceOf(from, to) returns the number of serial numbers that can be transferred right now from from to to, excluding those that cannot be moved due to a state attached to the serial number, such as a freeze or class restriction. A transfer by amount must succeed as long as it is within the transferable range, but a transfer by directly specified slices reverts entirely if even one of them cannot be moved.
Defragmentation
When an account receives many scattered serial numbers, the number of slices it holds grows, increasing the cost of later transfers. defragmentSlices consolidates the slices specified by the caller into a single new contiguous serial number starting from the value of serialsIssued(). The old serial numbers enter a consolidated state and the new number is recorded as their successor, but the balance, totalSupply, and allowances do not change at all, and the event reported is SliceConsolidated, not Transfer. Implementations may decide who can call this and whether defragmentation is performed automatically during transfers (including an optional delegated-defragmentation extension). consolidatedSpanAt can be used to track what number an old serial number has become.
Acceptance check
This feature is optional. For a token that supports it, when an incoming transfer arrives and the recipient is a contract implementing IERC8527Acceptance, acceptsERC8527Transfer is queried via a static call (STATICCALL), and it is considered accepted only if it returns its own selector (0x3fbf9755). Otherwise it is treated as refused and reverts with ERC8527TransferRefused. Transfers where value is 0, from equals to, or operator equals to are exceptions that skip this check. The fact that a token supports this check is itself declared to supportsInterface under a separate identifier (0xde7278e5).
Freeze extension
The optional IERC8527Freezable extension defines freezeSlice and unfreezeSlice, which freeze and unfreeze serial numbers by reason (bytes32), and forcedTransferSlice and destroySlice, which force-transfer or burn without the holder's consent. A serial number is frozen if it is frozen under one or more reasons, and once frozen it cannot be transferred to any counterparty. A freeze follows the serial number even as its holder changes, and a frozen serial number also cannot be defragmented, causing defragmentSlices to revert. canFreeze and canUnfreeze can be queried to check whether a given account has permission to freeze or unfreeze under a given reason, and freezeReasonInfo can be queried for the reason's name and documentation, letting wallets display the reason for a freeze without prior knowledge.
Intent of the classification extension
According to the Motivation section of the specification, an issuer may want some units to trade freely while others can only be sent to designated addresses, or may want units to be untradeable before a specific date. Examples include earmarked funds or securities subject to a lockup period. Until now, implementing such restrictions required separate token issuances or wrapper contracts, splitting a single asset across multiple balances. The Partitions extension assigns a class to each serial number, restricting who units of that class can be transferred to, while still aggregating units of every class into a single balance.
Proposal status
This ERC is currently in Draft status. It is an early-stage proposal whose details may still change, or whose work may stall, based on community discussion and implementation experience.