EIP-7702 introduces a standard for Soulbound Tokens (SBTs) in the Ethereum ecosystem. This page will provide a comprehensive overview of its architecture, core concepts, user flow, and implementation details.
ποΈ Architecture
The EIP-7702 standard defines a set of interfaces and functionalities for Soulbound Tokens. Here's a high-level overview of the architecture:
π§ Core Concepts
1. Non-Transferability π
SBTs are designed to be non-transferable, meaning once minted to an address, they cannot be moved to another address.
2. Revocability π
The issuer of an SBT has the ability to revoke (burn) the token if necessary.
3. Metadata π
Each SBT can carry metadata, providing additional information about the token and its properties.
4. Enumeration π’
The standard includes enumeration functions to easily query and iterate over tokens.
πΆ User Flow
Here's a typical user flow for interacting with Soulbound Tokens:
π» Implementation Details
Core Interface (IERC7702)
Metadata Interface (IERC7702Metadata)
Enumerable Interface (IERC7702Enumerable)
π Example Implementation
Here's a basic implementation of the ERC7702 standard:
This implementation provides a solid foundation for creating Soulbound Tokens following the EIP-7702 standard. Developers can extend and customize this base implementation to suit their specific use cases and requirements.