EIPs Explained

ERC-7578 · Final · ERC · 2023-08-01

ERC-7578: Physical Asset Redemption

An ERC-721 extension that stores standard facts about the physical item behind an NFT, such as issuer, legal owner, storage location, terms, jurisdiction and declared value, so holders can verify and redeem it.

What problem does it solve?

NFTs are increasingly used to represent physical goods: a bottle of wine, a watch, a gold bar, a piece of art in a vault. But a plain ERC-721 token says nothing about who stands behind that claim. A buyer cannot tell from the token who minted it, who legally owns the item, where it is kept, or which contract governs redemption.

ERC-7578 makes every token carry a fixed set of disclosure fields, so a holder (or a smart contract) can immediately assess counterparty, storage and legal risk, and knows who to contact to redeem the asset.

How it works

Each token has a Properties struct, which should be set before minting:

Field Meaning
tokenIssuer Person or entity minting the NFT
assetHolder Legal owner of the physical asset (may differ from the issuer)
storageLocation Where the asset is physically kept
terms Link to the legal agreement; should be an HTTP link to a document stored on IPFS
jurisdiction Governing law and jurisdiction
declaredValue Amount { currency, value } at mint time; not necessarily market value

The contract exposes:

  • getPropertiesOf(tokenId) — returns the struct; does not revert, and returns an empty struct for burned or unset tokens.
  • PropertiesSet(tokenId, properties) — emitted when properties are set.
  • PropertiesRemoved(tokenId) — emitted when they are cleared. Properties must be removed when the token is burned.

The reference implementation refuses to mint a token whose properties were not initialized first. The contract does not validate the data itself: accuracy is the issuer's responsibility.

Sample code

Reading the disclosures for a token (ethers v6):

import { Contract, JsonRpcProvider } from "ethers";

const abi = [
  "function getPropertiesOf(uint256 tokenId) view returns (tuple(string tokenIssuer, string assetHolder, string storageLocation, string terms, string jurisdiction, tuple(string currency, uint256 value) declaredValue))",
];

const provider = new JsonRpcProvider(process.env.RPC_URL);
const nft = new Contract(collectionAddress, abi, provider);

const p = await nft.getPropertiesOf(42n);
console.log(p.tokenIssuer, p.assetHolder, p.storageLocation);
console.log("terms:", p.terms, "law:", p.jurisdiction);
console.log("declared:", p.declaredValue.value.toString(), p.declaredValue.currency);

Minting with properties in a contract built on the reference ERC7578:

function mint(address to, uint256 id, Properties calldata props) external onlyOwner {
    _setPropertiesOf(id, props); // must happen before _safeMint
    _safeMint(to, id);
}

Things to know

  • Status is Final.
  • The fields are free-form strings. The standard discloses information; it does not prove the item exists or that the legal terms are enforceable.
  • Only a trusted, access-controlled account should be able to set properties, and the spec warns against allowing unauthorized changes afterwards.
  • Whether the declared value, currency format or identity strings are meaningful depends entirely on the issuer, so holders should still do their own due diligence.

#nft #rwa #tokenization #erc721 #redemption

Details

Authors
Lee Vidor (@V1d0r), David Tan <[email protected]>, Lee Smith <[email protected]>, Gabriel Stoica (@gabrielstoica)
Status
Final
Type
Standards Track / ERC
Created
2023-08-01
Requires

Machine-readable: Markdown · JSON