Introduction
Hi, I'm cardene, a software engineer and technical writer focused on blockchain and AI.
I've also authored Japanese technical books on specification-driven development with LLMs and decentralized application (DApp) development.
I also build and publish a variety of tools, libraries, and open-source projects.
This article explains ERC-6672, an extension for NFTs that can be redeemed for physical or digital items across multiple events rather than being limited to a single redemption.
This article is based on the following proposal.
Overview
ERC-6672 proposes an extension to ERC-721.
For ERC-721, see the following article.
ERC-721 defines a standard interface for non-fungible tokens, commonly known as NFTs.
ERC-6672 allows an NFT to be associated with multiple redemption opportunities. Applications can use NFT ownership and eligibility information to determine whether a holder can receive a physical or digital item.
Redemption records can be maintained on-chain, allowing the same NFT to participate in multiple campaigns or events without requiring a separate NFT for each opportunity.
The interface records redemptions; it does not independently verify delivery of physical goods or establish all the eligibility requirements of a particular event.
Another ERC-721-compatible implementation is ERC721A, which focuses on efficient batch minting rather than redemption tracking.
For ERC721A, see the following article.
Motivation
The proposal aims to support commercial use cases involving different redemption campaigns and events. It removes the assumption that an NFT can only be redeemed once.
For example, a digital concert ticket NFT could provide several independently redeemable benefits:
- Admission to an online concert.
- Merchandise.
- Access to an artist meet-and-greet or autograph session.
Each benefit can have its own redemption identifier while remaining associated with the same NFT.
Specification
Redemption and cancellation
The redeem() and cancel() functions do not accept an operator address as an argument. Instead, the implementation must use msg.sender as the operator.
This design associates changes to redemption records with the operator making the call, rather than allowing the caller to supply another operator's identity.
The implementation must still enforce any additional authorization or eligibility rules required by the application.
Redemption status keys
A redemption record is identified by the combination of _operator, _tokenId, and _redemptionId.
The isRedeemed() function allows applications to query the status of that combination.
A compatible implementation must provide the ERC-6672 and ERC-721 interfaces.
For more information about the ERC-721 interface, see the following article.
https://chaldene.net/erc721#st-toc-h-5
ERC-6672 interface
pragma solidity ^0.8.16;
interface IERC6672 /* is IERC721 */ {
event Redeem(
address indexed _operator,
uint256 indexed _tokenId,
address redeemer,
bytes32 _redemptionId,
string _memo
);
event Cancel(
address indexed _operator,
uint256 indexed _tokenId,
bytes32 _redemptionId,
string _memo
);
function isRedeemed(address _operator, bytes32 _redemptionId, uint256 _tokenId) external view returns (bool);
function getRedemptionIds(address _operator, uint256 _tokenId) external view returns (bytes32[]);
function redeem(bytes32 _redemptionId, uint256 _tokenId, string _memo) external;
function cancel(bytes32 _redemptionId, uint256 _tokenId, string _memo) external;
}Redeem
An event emitted when a redemption is recorded.
Cancel
An event emitted when a recorded redemption is canceled.
isRedeemed
Determines whether an NFT has already been redeemed for a particular redemption opportunity under a particular operator.
Parameters
_operator- The operator's address.
_redemptionId- The redemption or event identifier.
_tokenId- The NFT's token ID.
Return value
A Boolean indicating whether the specified redemption is currently recorded as redeemed.
getRedemptionIds
Returns redemption identifiers associated with a particular operator and NFT.
Parameters
_operator- The operator's address.
_tokenId- The NFT's token ID.
Return value
An array of redemption identifiers associated with that operator and token.
The operator is not necessarily the NFT owner. In the reference implementation below, canceled identifiers are removed from the returned collection, so the array is not a complete historical record. Historical changes can instead be reconstructed from the relevant events.
redeem
Records redemption of an NFT for a specified opportunity.
Parameters
_redemptionId- The redemption or event identifier.
_tokenId- The token ID of the NFT being redeemed.
_memo- A memo associated with the redemption.
cancel
Cancels a recorded redemption for the specified NFT and opportunity.
Parameters
_redemptionId- The redemption or event identifier.
_tokenId- The token ID of the NFT whose redemption is being canceled.
_memo- A memo associated with the cancellation.
Metadata extension
The proposal introduces an optional metadata extension containing redemption information.
Entries in the redemptions object use keys constructed from the following components, expressed as operator-tokenId-redemptionId:
operator- The operator's address.
tokenId- The NFT's token ID.
redemptionId- The redemption or event identifier.
Redemption status
Metadata can describe more detailed redemption states than the on-chain Boolean flag.
For a physical product, possible status values include:
- Redeemed.
- Paid.
- Shipping.
The proposal recommends using understandable string enumeration values so that NFT holders and marketplaces can interpret these statuses.
Redemption description
Descriptions can provide additional information about a redemption, such as:
- Information about a concert ticket.
- Details of a physical collectible or action figure.
The metadata extension is optional. Applications implementing it can expose richer redemption information without changing the underlying Boolean redemption interface.
Metadata status descriptions should not be treated as independently verified evidence that an off-chain delivery or payment has occurred.
Metadata interface
interface IERC6672Metadata /* is IERC721Metadata */ {
function tokenURI(uint256 _tokenId) external view returns (string);
}Metadata JSON schema
{
"title": "Asset Metadata",
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "Identifies the asset to which this NFT represents"
},
"description": {
"type": "string",
"description": "Describes the asset to which this NFT represents"
},
"image": {
"type": "string",
"description": "A URI pointing to a resource with mime type image/* representing the asset to which this NFT represents. Consider making any images at a width between 320 and 1080 pixels and aspect ratio between 1.91:1 and 4:5 inclusive."
}
},
"redemptions": {
"operator-tokenId-redemptionId": {
"status": {
"type": "string",
"description": "The status of a redemption. Enum type can be used to represent the redemption status, such as redeemed, shipping, paid."
},
"description": {
"type": "string",
"description": "Describes the object that has been redeemed for an NFT, such as the name of an action figure series name or the color of the product."
}
}
}
}The original schema example is reproduced unchanged. Implementers should validate their actual metadata schema and documents against the JSON Schema dialect and application conventions they use.
Rationale
The combination of operator, token ID, and redemption ID distinguishes redemption records within a token contract.
_operator
The same NFT may be used for redemption opportunities managed by different operators.
For example, an NFT could grant access to Event X and Event Y, with a different operator responsible for each event.
_tokenId
An operator can maintain redemption records for multiple NFTs. Including the token ID associates each redemption with the relevant individual token.
_redemptionId
An NFT holder may redeem multiple benefits managed by the same operator.
Suppose Operator X manages two events, each offering a physical collectible. An eligible NFT holder could redeem both benefits. The records would have the same operator and token ID, but different redemption IDs.
The three-part key distinguishes these opportunities. It is not a globally unique identifier for every blockchain transaction: cancellations and subsequent redemptions can update the same record.
Backward compatibility
ERC-6672 is designed as an extension to ERC-721. Existing ERC-721 functionality remains available, while compatible contracts expose additional redemption operations.
Reference implementation
The following example demonstrates the proposed redemption mechanism.
// SPDX-License-Identifier: MIT
pragma solidity 0.8.16;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/utils/structs/EnumerableSet.sol";
import "./interfaces/IERC6672.sol";
abstract contract ERC6672 is ERC721, IERC6672 {
using EnumerableSet for EnumerableSet.Bytes32Set;
bytes4 public constant IERC6672_ID = type(IERC6672).interfaceId;
mapping(address => mapping(uint256 => mapping(bytes32 => bool))) redemptionStatus;
mapping(address => mapping(uint256 => mapping(bytes32 => string)))
public memos;
mapping(address => mapping(uint256 => EnumerableSet.Bytes32Set)) redemptions;
constructor() ERC721("Multiple RedeemableNFT", "mrNFT") {}
function isRedeemed(
address _operator,
bytes32 _redemptionId,
uint256 _tokenId
) external view returns (bool) {
return _isRedeemed(_operator, _redemptionId, _tokenId);
}
function getRedemptionIds(
address _operator,
uint256 _tokenId
) external view returns (bytes32[] memory) {
require(
redemptions[_operator][_tokenId].length() > 0,
"ERC6672: token doesn't have any redemptions."
);
return redemptions[_operator][_tokenId].values();
}
function redeem(
bytes32 _redemptionId,
uint256 _tokenId,
string memory _memo
) external {
address _operator = msg.sender;
require(
!_isRedeemed(_operator, _redemptionId, _tokenId),
"ERC6672: token already redeemed."
);
_update(_operator, _redemptionId, _tokenId, _memo, true);
redemptions[_operator][_tokenId].add(_redemptionId);
emit Redeem(
_operator,
_tokenId,
ownerOf(_tokenId),
_redemptionId,
_memo
);
}
function cancel(
bytes32 _redemptionId,
uint256 _tokenId,
string memory _memo
) external {
address _operator = msg.sender;
require(
_isRedeemed(_operator, _redemptionId, _tokenId),
"ERC6672: token doesn't redeemed."
);
_update(_operator, _redemptionId, _tokenId, _memo, false);
_removeRedemption(_operator, _redemptionId, _tokenId);
emit Cancel(_operator, _tokenId, _redemptionId, _memo);
}
function _isRedeemed(
address _operator,
bytes32 _redemptionId,
uint256 _tokenId
) internal view returns (bool) {
require(_exists(_tokenId), "ERC6672: token doesn't exists.");
return redemptionStatus[_operator][_tokenId][_redemptionId];
}
function _update(
address _operator,
bytes32 _redemptionId,
uint256 _tokenId,
string memory _memo,
bool isRedeemed_
) internal {
redemptionStatus[_operator][_tokenId][_redemptionId] = isRedeemed_;
memos[_operator][_tokenId][_redemptionId] = _memo;
if (isRedeemed_) {
emit Redeem(
_operator,
_tokenId,
ownerOf(_tokenId),
_redemptionId,
_memo
);
} else {
emit Cancel(_operator, _tokenId, _redemptionId, _memo);
}
}
function _removeRedemption(
address _operator,
bytes32 _redemptionId,
uint256 _tokenId
) internal {
redemptions[_operator][_tokenId].remove(_redemptionId);
}
function supportsInterface(
bytes4 interfaceId
) public view virtual override(ERC721, IERC165) returns (bool) {
return
interfaceId == type(IERC721).interfaceId ||
interfaceId == type(IERC6672).interfaceId ||
super.supportsInterface(interfaceId);
}
}The reference implementation maintains separate mappings for redemption status, memos, and the set of redemption identifiers.
It uses the caller's address as the operator when recording or canceling a redemption. The ownerOf() call identifies the token owner for the redemption event.
The code is preserved from the original article and has not been independently compiled or audited.
Several implementation details deserve attention:
- The reference code emits redemption and cancellation events both inside the internal update function and in the corresponding external functions. Integrators should avoid treating duplicate logs as separate redemptions.
- The returned redemption identifier set excludes canceled entries, and the function reverts when that set is empty.
- Operator-specific records do not automatically establish that a particular operator is trusted or that an NFT holder consented to a redemption.
Security
An implementation must prevent one operator from modifying redemption records belonging to another operator.
Using msg.sender to identify the operator associates the redemption and cancellation operations with the caller's own record namespace.
The proposal also recommends keeping redemption and cancellation authorization separate from ERC-721 transfer approvals. Permission to transfer an NFT should not automatically imply permission to redeem its associated benefits.
Applications must establish additional policies where necessary, including trusted operators, holder consent, event eligibility, and physical fulfillment verification.
Conclusion
ERC-6672 extends ERC-721 with independently identifiable redemption records, allowing a single NFT to be used for multiple physical or digital benefits.
The original article notes that further practical implementation examples may be added later.
Questions are welcome via Twitter @cardene777.

