ERC-7729: Token with Metadata

An ERC-20 extension for tokens with metadata.


Metadata
Status: DraftStandards Track: ERCCreated: 2023-06-24
Authors
msfew (@fewwwww)
Requires

Abstract


This standard extends the ERC-20 standard to include a metadata function interface and a JSON schema for metadata.

Motivation


Memecoins have demonstrated the value of associating tokens with visual metadata. By standardizing a way to include metadata in ERC-20 tokens, developers can create more engaging and interactive tokens, fostering community engagement.

Specification


The keywords "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 and RFC 8174.

Every compliant contract must implement the IERC7729, and ERC20 interfaces.

This standard includes the following interface:


This is the "ERC-7729 Metadata JSON Schema" referenced above.


Rationale


The metadata function was chosen based on existing implementations in standards and applications.

Backwards Compatibility


This standard is backward compatible with the ERC-20 as it extends the existing functionality with new interfaces.

Reference Implementation



Security Considerations


The metadata URI could be manipulated to point to malicious content or phishing sites. Off-chain indexers should perform validation checks to ensure the security and integrity of the metadata URIs for users.

Copyright


Copyright and related rights waived via CC0.