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 covers ERC5727, a standard proposing an interface for SBTs (also known as soulbound tokens, badges, or account-bound tokens) with a range of additional features.
This article translates, summarizes, and expands on the following proposal.
As of October 2, 2023, ERC5727 was at the Draft stage.
Overview
This interface is designed for soulbound tokens (SBTs).
An SBT is a token representing important information about an individual. This includes identity (who owns the token), credentials (the owner's skills or permissions), affiliations (membership in organizations or groups), and reputation (the owner's trustworthiness or evaluation).
The interface organizes combinations of fungible and non-fungible tokens. It also provides basic methods for managing the SBT lifecycle, including creating, transferring, updating, and removing tokens.
In addition, it provides extensions for advanced features such as DAO (decentralized autonomous organization) governance, delegation (assigning operational rights to someone else), token expiration, and account recovery. These extensions make SBT systems more flexible and customizable.
The interface provides a robust framework for reliably managing personal identity information and using it in various scenarios. It can be used to build and extend SBTs for individual projects and applications.
Motivation
Tokens that can be freely transferred and exchanged are prevalent in the Web3 ecosystem. They are designed so their owners can transfer them to others or trade them. However, many scenarios require non-transferable tokens. For example, ownership of a community membership card should not be transferable to another person.
The Ethereum community has already seen many attempts to create such non-transferable tokens. However, these attempts lack the flexibility to support both fungible and non-fungible tokens and provide extensions for important use cases.
The interface can represent non-transferable ownership and provides functionality for common use cases such as the following.
- Fine-grained SBT lifecycle management (e.g., issuance, revocation, subscription, and expiration).
- SBT management through community voting and delegation (e.g., DAO governance and operators).
- SBT recovery (e.g., account recovery and key rotation).
- Fungible and non-fungible SBTs (e.g., membership cards and loyalty points).
- Grouping SBTs by slot (e.g., complex reward schemes combining vouchers, points, and badges).
- Claimable SBTs (e.g., airdrops, giveaways, and referrals).
A common interface for soulbound tokens can enrich the Web3 ecosystem, support the growth of a decentralized society, and simplify and facilitate the implementation of non-transferable tokens across applications and projects.
Specification
Each token is identified by a unique token ID (a 256-bit number). A token may also represent a value.
A slot, on the other hand, is identified by a slot ID (a 256-bit number) that distinguishes a particular group. Slots are used to group fungible and non-fungible tokens together. This gives tokens semi-fungible characteristics, with only part of their properties being interchangeable. Each token can belong to only one slot at a time.
Core
The core methods are used to manage the SBT lifecycle. All semi-fungible SBT implementations must support these methods.
/**
* @title ERC5727 Soulbound Token Interface
* @dev The core interface of the ERC5727 standard.
*/
interface IERC5727 is IERC3525, IERC5192, IERC5484, IERC4906 {
/**
* @dev MUST emit when a token is revoked.
* @param from The address of the owner
* @param tokenId The token id
*/
event Revoked(address indexed from, uint256 indexed tokenId);
/**
* @dev MUST emit when a token is verified.
* @param by The address that initiated the verification
* @param tokenId The token id
* @param result The result of the verification
*/
event Verified(address indexed by, uint256 indexed tokenId, bool result);
/**
* @notice Get the verifier of a token.
* @dev MUST revert if the `tokenId` does not exist
* @param tokenId the token for which to query the verifier
* @return The address of the verifier of `tokenId`
*/
function verifierOf(uint256 tokenId) external view returns (address);
/**
* @notice Get the issuer of a token.
* @dev MUST revert if the `tokenId` does not exist
* @param tokenId the token for which to query the issuer
* @return The address of the issuer of `tokenId`
*/
function issuerOf(uint256 tokenId) external view returns (address);
/**
* @notice Issue a token in a specified slot to an address.
* @dev MUST revert if the `to` address is the zero address.
* MUST revert if the `verifier` address is the zero address.
* @param to The address to issue the token to
* @param tokenId The token id
* @param slot The slot to issue the token in
* @param burnAuth The burn authorization of the token
* @param verifier The address of the verifier
* @param data Additional data used to issue the token
*/
function issue(
address to,
uint256 tokenId,
uint256 slot,
BurnAuth burnAuth,
address verifier,
bytes calldata data
) external payable;
/**
* @notice Issue credit to a token.
* @dev MUST revert if the `tokenId` does not exist.
* @param tokenId The token id
* @param amount The amount of the credit
* @param data The additional data used to issue the credit
*/
function issue(
uint256 tokenId,
uint256 amount,
bytes calldata data
) external payable;
/**
* @notice Revoke a token from an address.
* @dev MUST revert if the `tokenId` does not exist.
* @param tokenId The token id
* @param data The additional data used to revoke the token
*/
function revoke(uint256 tokenId, bytes calldata data) external payable;
/**
* @notice Revoke credit from a token.
* @dev MUST revert if the `tokenId` does not exist.
* @param tokenId The token id
* @param amount The amount of the credit
* @param data The additional data used to revoke the credit
*/
function revoke(
uint256 tokenId,
uint256 amount,
bytes calldata data
) external payable;
/**
* @notice Verify if a token is valid.
* @dev MUST revert if the `tokenId` does not exist.
* @param tokenId The token id
* @param data The additional data used to verify the token
* @return A boolean indicating whether the token is successfully verified
*/
function verify(
uint256 tokenId,
bytes calldata data
) external returns (bool);
}Revoked
event Revoked(address indexed from, uint256 indexed tokenId);Overview Event emitted when a token is revoked.
Details This event is emitted when the token owner revokes the token. It records the owner address and the revoked token's ID.
Parameters
from- Address of the token owner.
tokenId- ID of the revoked token.
Verified
event Verified(address indexed by, uint256 indexed tokenId, bool result);Overview Event emitted when a token is verified.
Details Records the result of token verification. It includes the address that initiated verification, the token ID, and the verification result (a boolean).
Parameters
by- Address that initiated verification.
tokenId- ID of the verified token.
result- Verification result.
trueindicates success;falseindicates failure.
The following functions are described using the same format.
verifierOf
function verifierOf(uint256 tokenId) external view returns (address);Overview
Retrieves the verifier address of a specified token.
Details
Accepts a token ID (tokenId) and returns the address of its verifier.
The function reverts if the specified token does not exist.
Arguments
tokenId- ID of the token whose verifier is being queried.
Return value
address- Verifier address.
issuerOf
function issuerOf(uint256 tokenId) external view returns (address);Overview
Retrieves the issuer address of a specified token.
Details
Accepts a token ID (tokenId) and returns the address of its issuer.
The function reverts if the specified token does not exist.
Arguments
tokenId- ID of the token whose issuer is being queried.
Return value
address- Issuer address.
issue
function issue(
address to,
uint256 tokenId,
uint256 slot,
BurnAuth burnAuth,
address verifier,
bytes calldata data
) external payable;Overview
Issues a token in a specified slot to a specified address.
Details
Issues the specified token ID (tokenId) in the specified slot (slot) to the address (to).
The caller can also specify the token's burn authorization (burnAuth), verifier address (verifier), and additional issuance data (data).
The function reverts if either the to or verifier address is the zero address.
Arguments
to- Address to receive the token.
tokenId- Token ID.
slot- Slot in which to issue the token.
burnAuth- Token's burn authorization.
verifier- Verifier address.
data- Additional data for issuing the token.
issue
function issue(
uint256 tokenId,
uint256 amount,
bytes calldata data
) external payable;Overview
Issues credit to a specified token.
Details
Issues the specified amount of credit to the token ID (tokenId).
The function reverts if the specified token does not exist.
Arguments
tokenId- Token ID.
amount- Amount of credit.
data- Additional data for issuing credit.
revoke
function revoke(uint256 tokenId, bytes calldata data) external payable;Overview
Revokes a token from a specified address.
Details
Revokes the token with ID tokenId from the specified address.
The function reverts if the specified token does not exist.
Arguments
tokenId- Token ID.
data- Additional data for revoking the token.
The following functions are described using the same format.
revoke
function revoke(
uint256 tokenId,
uint256 amount,
bytes calldata data
) external payable;Overview
Revokes credit from a specified token.
Details
Revokes the specified amount of credit from the token with ID tokenId.
The function reverts if the specified token does not exist.
Arguments
tokenId- Token ID.
amount- Amount of credit.
data- Additional data for revoking credit.
verify
function verify(
uint256 tokenId,
bytes calldata data
) external returns (bool);Overview
Checks whether a specified token is valid.
Details
Accepts a token ID (tokenId) and uses additional data (data) to verify whether the token is valid.
The function returns true if the token is valid and false otherwise.
The function reverts if the specified token does not exist.
Arguments
tokenId- Token ID.
data- Additional data for verifying the token.
Extensions
All the following extensions are optional for an ERC5727 implementation. An implementation may include all of them, none of them, or a selection of them.
Enumerable
An extension providing methods for enumerating an owner's tokens. Implementing it alongside the core interface is recommended.
/**
* @title ERC5727 Soulbound Token Enumerable Interface
* @dev This extension allows querying the tokens of a owner.
*/
interface IERC5727Enumerable is IERC3525SlotEnumerable, IERC5727 {
/**
* @notice Get the number of slots of a owner.
* @param owner The owner whose number of slots is queried for
* @return The number of slots of the `owner`
*/
function slotCountOfOwner(address owner) external view returns (uint256);
/**
* @notice Get the slot with `index` of the `owner`.
* @dev MUST revert if the `index` exceed the number of slots of the `owner`.
* @param owner The owner whose slot is queried for.
* @param index The index of the slot queried for
* @return The slot is queried for
*/
function slotOfOwnerByIndex(
address owner,
uint256 index
) external view returns (uint256);
/**
* @notice Get the balance of a owner in a slot.
* @dev MUST revert if the slot does not exist.
* @param owner The owner whose balance is queried for
* @param slot The slot whose balance is queried for
* @return The balance of the `owner` in the `slot`
*/
function ownerBalanceInSlot(
address owner,
uint256 slot
) external view returns (uint256);
}slotCountOfOwner
function slotCountOfOwner(address owner) external view returns (uint256);Overview
Retrieves the number of slots held by a specified owner.
Details
Accepts an owner address (owner) and returns the number of slots that owner holds.
Arguments
owner- Address of the owner whose slot count is being queried.
Return value
uint256- Number of slots held by
owner.
- Number of slots held by
slotOfOwnerByIndex
function slotOfOwnerByIndex(
address owner,
uint256 index
) external view returns (uint256);Overview
Retrieves a slot at a specified index for a specified owner.
Details
Accepts the owner address (owner) and the index (index) of the requested slot, then returns the slot at that index.
The function reverts if the specified index exceeds the owner's number of slots.
Arguments
owner- Address of the owner whose slot is being queried.
index- Index of the requested slot.
Return value
uint256- Requested slot.
ownerBalanceInSlot
function ownerBalanceInSlot(
address owner,
uint256 slot
) external view returns (uint256);Overview
Retrieves the balance of a specified owner in a specified slot.
Details
Accepts the owner address (owner) and slot number (slot) and returns the owner's balance in that slot.
The function reverts if the specified slot does not exist.
Arguments
owner- Address of the owner whose balance is being queried.
slot- Slot whose balance is being queried.
Return value
uint256- Balance of
ownerinslot.
- Balance of
Metadata
An extension providing methods for retrieving metadata about tokens, slots, and the contract itself. It is recommended when the appearance and properties of tokens, slots, or the contract (the SBT collection) need to be specified.
/**
* @title ERC5727 Soulbound Token Metadata Interface
* @dev This extension allows querying the metadata of soulbound tokens.
*/
interface IERC5727Metadata is IERC3525Metadata, IERC5727 {
}Governance
An extension for managing token issuance and revocation rights through voting. It is useful when decisions about issuing or revoking tokens should be delegated to a community or designated voters.
/**
* @title ERC5727 Soulbound Token Governance Interface
* @dev This extension allows issuing of tokens by community voting.
*/
interface IERC5727Governance is IERC5727 {
enum ApprovalStatus {
Pending,
Approved,
Rejected,
Removed
}
/**
* @notice Emitted when a token issuance approval is changed.
* @param approvalId The id of the approval
* @param creator The creator of the approval, zero address if the approval is removed
* @param status The status of the approval
*/
event ApprovalUpdate(
uint256 indexed approvalId,
address indexed creator,
ApprovalStatus status
);
/**
* @notice Emitted when a voter approves an approval.
* @param voter The voter who approves the approval
* @param approvalId The id of the approval
*/
event Approve(
address indexed voter,
uint256 indexed approvalId,
bool approve
);
/**
* @notice Create an approval of issuing a token.
* @dev MUST revert if the caller is not a voter.
* MUST revert if the `to` address is the zero address.
* @param to The owner which the token to mint to
* @param tokenId The id of the token to mint
* @param amount The amount of the token to mint
* @param slot The slot of the token to mint
* @param burnAuth The burn authorization of the token to mint
* @param data The additional data used to mint the token
*/
function requestApproval(
address to,
uint256 tokenId,
uint256 amount,
uint256 slot,
BurnAuth burnAuth,
address verifier,
bytes calldata data
) external;
/**
* @notice Remove `approvalId` approval request.
* @dev MUST revert if the caller is not the creator of the approval request.
* MUST revert if the approval request is already approved or rejected or non-existent.
* @param approvalId The approval to remove
*/
function removeApprovalRequest(uint256 approvalId) external;
/**
* @notice Approve `approvalId` approval request.
* @dev MUST revert if the caller is not a voter.
* MUST revert if the approval request is already approved or rejected or non-existent.
* @param approvalId The approval to approve
* @param approve True if the approval is approved, false if the approval is rejected
* @param data The additional data used to approve the approval (e.g. the signature, voting power)
*/
function voteApproval(
uint256 approvalId,
bool approve,
bytes calldata data
) external;
/**
* @notice Get the URI of the approval.
* @dev MUST revert if the `approvalId` does not exist.
* @param approvalId The approval whose URI is queried for
* @return The URI of the approval
*/
function approvalURI(
uint256 approvalId
) external view returns (string memory);
}ApprovalStatus
enum ApprovalStatus {
Pending,
Approved,
Rejected,
Removed
}Overview
An enumeration representing the status of an approval.
Parameters
Pending- Awaiting approval.
Approved- Approved.
Rejected- Rejected.
Removed- Approval removed.
ApprovalUpdate
event ApprovalUpdate(
uint256 indexed approvalId,
address indexed creator,
ApprovalStatus status
);Overview
Event emitted when a token issuance approval changes.
Parameters
approvalId- Approval ID.
creator- Address that created the approval.
- The zero address if the approval has been removed.
status- Approval status.
Approve
event Approve(
address indexed voter,
uint256 indexed approvalId,
bool approve
);Overview
Event emitted when a voter votes on an approval.
Details
voter- Address of the voter who voted on the approval.
approvalId- Approval ID.
approve- Boolean indicating whether the approval was granted.
The following functions are described using the same format.
requestApproval
function requestApproval(
address to,
uint256 tokenId,
uint256 amount,
uint256 slot,
BurnAuth burnAuth,
address verifier,
bytes calldata data
) external;Overview
Creates an approval request for issuing a token. The approval represents a request to issue a token.
Details
Verifies that the caller is a voter and creates a token issuance approval using the specified parameters.
The approval consists of the recipient (to), token ID (tokenId), amount (amount), slot (slot), burn authorization (burnAuth), verifier (verifier), and additional data (data).
Arguments
to- Address of the owner to receive the token.
tokenId- ID of the token to issue.
amount- Amount of the token to issue.
slot- Slot of the token to issue.
burnAuth- Burn authorization for the issued token.
verifier- Verifier address for the issued token.
data- Additional data for issuing the token.
removeApprovalRequest
function removeApprovalRequest(uint256 approvalId) external;Overview
Removes the approval request identified by approvalId.
Details
Verifies that the caller created the approval request and reverts if the request has already been approved or rejected, or if it does not exist. This function removes approval requests that are no longer needed.
Arguments
approvalId- ID of the approval request to remove.
voteApproval
function voteApproval(
uint256 approvalId,
bool approve,
bytes calldata data
) external;Overview
Approves or rejects the request identified by approvalId.
Details
Verifies that the caller is a voter and reverts if the request has already been approved or rejected, or if it does not exist.
The approve parameter indicates whether the request is approved or rejected.
Additional data (data) supplies extra information for voting on the approval.
Arguments
approvalId- ID of the approval request to approve or reject.
approvetrueif the request is approved;falseif it is rejected.
data- Additional data for voting on the request (e.g., a signature or voting power).
approvalURI
function approvalURI(uint256 approvalId) external view returns (string memory);Overview
Retrieves the URI of the approval identified by approvalId.
Details
Reverts if the specified approvalId does not exist; otherwise, returns the approval's URI.
The URI references external data associated with the approval, such as its details or documentation.
Arguments
approvalId- ID of the approval whose URI is being queried.
Delegation
An extension providing methods for delegating (or revoking) slot-specific minting rights to (or from) an operator. It is useful when an operator should mint tokens in a particular slot on behalf of another party.
/**
* @title ERC5727 Soulbound Token Delegate Interface
* @dev This extension allows delegation of issuing and revocation of tokens to an operator.
*/
interface IERC5727Delegate is IERC5727 {
/**
* @notice Emitted when a token issuance is delegated to an operator.
* @param operator The owner to which the issuing right is delegated
* @param slot The slot to issue the token in
*/
event Delegate(address indexed operator, uint256 indexed slot);
/**
* @notice Emitted when a token issuance is revoked from an operator.
* @param operator The owner to which the issuing right is delegated
* @param slot The slot to issue the token in
*/
event UnDelegate(address indexed operator, uint256 indexed slot);
/**
* @notice Delegate rights to `operator` for a slot.
* @dev MUST revert if the caller does not have the right to delegate.
* MUST revert if the `operator` address is the zero address.
* MUST revert if the `slot` is not a valid slot.
* @param operator The owner to which the issuing right is delegated
* @param slot The slot to issue the token in
*/
function delegate(address operator, uint256 slot) external;
/**
* @notice Revoke rights from `operator` for a slot.
* @dev MUST revert if the caller does not have the right to delegate.
* MUST revert if the `operator` address is the zero address.
* MUST revert if the `slot` is not a valid slot.
* @param operator The owner to which the issuing right is delegated
* @param slot The slot to issue the token in
*/
function undelegate(address operator, uint256 slot) external;
/**
* @notice Check if an operator has the permission to issue or revoke tokens in a slot.
* @param operator The operator to check
* @param slot The slot to check
*/
function isOperatorFor(
address operator,
uint256 slot
) external view returns (bool);
}Delegate
event Delegate(address indexed operator, uint256 indexed slot);Overview
Event emitted when token issuance rights are delegated to a specified operator.
Parameters
operator- Address of the operator receiving issuance rights.
slot- Slot in which to issue the token.
UnDelegate
event UnDelegate(address indexed operator, uint256 indexed slot);Overview
Event emitted when token issuance rights are revoked from a specified operator.
Parameters
operator- Address of the operator whose issuance rights are revoked.
slot- Slot in which to issue the token.
The following functions are described using the same format.
delegate function
function delegate(address operator, uint256 slot) external;Overview
Delegates rights in a specified slot to a specified operator.
Details
Used to delegate token issuance rights to a particular operator. The delegated operator can issue tokens in the specified slot.
Arguments
operator- Address of the operator receiving delegated rights.
slot- Slot in which to issue the token.
undelegate
function undelegate(address operator, uint256 slot) external;Overview
Revokes a specified operator's rights in a specified slot.
Details
Used to revoke token issuance rights from a particular operator. The operator loses the right to issue tokens in the specified slot.
Arguments
operator- Address of the operator whose rights are revoked.
slot- Slot in which to issue the token.
The following functions are described using the same format.
delegate
function delegate(address operator, uint256 slot) external;Overview
Delegates rights in a specified slot to a specified operator.
Details
This function delegates token issuance rights to a specified operator. The delegated operator can issue tokens in the specified slot.
Arguments
operator- Address of the operator receiving delegated rights.
slot- Slot in which to issue the token.
undelegate
function undelegate(address operator, uint256 slot) external;Overview
Revokes a specified operator's rights in a specified slot.
Details
Used to revoke token issuance rights from a particular operator. The operator loses the right to issue tokens in the specified slot.
Arguments
operator- Address of the operator whose rights are revoked.
slot- Slot in which to issue the token.
isOperatorFor
function isOperatorFor(address operator, uint256 slot) external view returns (bool);Overview
Checks whether a specified operator has permission to issue or revoke tokens in a particular slot.
Details
Checks whether the specified operator has permission to issue or revoke tokens in the specified slot.
Returns true if the operator has permission and false otherwise.
Arguments
operator- Address of the operator to check.
slot- Slot to check.
isOperatorFor
function isOperatorFor(address operator, uint256 slot) external view returns (bool);Overview
Checks whether a specified operator has permission to issue or revoke tokens in a particular slot.
Details
Checks whether the specified operator has permission to issue or revoke tokens in the specified slot.
Returns true if the operator has permission and false otherwise.
Arguments
operator- Address of the operator to check.
slot- Slot to check.
Recovery
An extension providing methods for recovering tokens from an old owner who can no longer use them. It is recommended for cases where users are compromised or need to retrieve tokens from an old wallet.
The extension uses an EIP712-compatible signature scheme for readability and usability.
The token recovery process makes it easier to verify the rightful owner of the tokens.
/**
* @title ERC5727 Soulbound Token Recovery Interface
* @dev This extension allows recovering soulbound tokens from an address provided its signature.
*/
interface IERC5727Recovery is IERC5727 {
/**
* @notice Emitted when the tokens of `owner` are recovered.
* @param from The owner whose tokens are recovered
* @param to The new owner of the tokens
*/
event Recovered(address indexed from, address indexed to);
/**
* @notice Recover the tokens of `owner` with `signature`.
* @dev MUST revert if the signature is invalid.
* @param owner The owner whose tokens are recovered
* @param signature The signature signed by the `owner`
*/
function recover(address owner, bytes memory signature) external;
}Recovered
event Recovered(address indexed from, address indexed to);Overview
Event emitted when tokens are recovered from a specified owner.
Details
from- Address of the owner whose tokens are recovered.
to- Address of the new token owner.
recover
function recover(address owner, bytes memory signature) external;Overview
Recovers tokens from a specified owner.
Details
Used to recover tokens from a specified owner. The owner must provide a valid signature. The function reverts if the signature is invalid.
Arguments
owner- Address of the owner whose tokens are recovered.
signature- Proof of token recovery signed by the owner.
Expirable
An extension providing methods for managing token expiration. It is useful when tokens should expire or become invalid after a specified period.
/**
* @title ERC5727 Soulbound Token Expirable Interface
* @dev This extension allows soulbound tokens to be expirable and renewable.
*/
interface IERC5727Expirable is IERC5727, IERC5643 {
/**
* @notice Set the expiry date of a token.
* @dev MUST revert if the `tokenId` token does not exist.
* MUST revert if the `date` is in the past.
* @param tokenId The token whose expiry date is set
* @param expiration The expire date to set
* @param isRenewable Whether the token is renewable
*/
function setExpiration(
uint256 tokenId,
uint64 expiration,
bool isRenewable
) external;
}setExpiration
function setExpiration(
uint256 tokenId,
uint64 expiration,
bool isRenewable
) external;Overview
Sets the expiration of a specified token.
Details Sets the token's expiration and optionally specifies whether it can be renewed.
Arguments
tokenId- ID of the token whose expiration is being set.
expiration- Expiration date and time to set.
- The function reverts if this date and time are in the past.
isRenewable- Boolean indicating whether the token is renewable.
- Controls whether the token can be renewed after its expiration.
Additional explanation
Token storage model
The standard adopts a semi-fungible token storage model. Inspired by the semi-fungible token standard, this model is designed to support both fungible and non-fungible tokens.
Each slot can represent a different type of SBT, making the model better suited to representing soulbound tokens than the model used by ERC1155. For example, a DAO can maintain membership SBTs, role badges, and ratings in a single SBT collection.
Unlike ERC1155, the interface also helps distinguish similar tokens from one another. Credential scores obtained from different entities may differ not only in value, but also in effect, validity period, and origin. These tokens can still share the same slot, and all contribute to an individual's reputation, membership, or similar attributes.
Recovery mechanism
To prevent SBT loss, the proposal introduces a recovery mechanism that allows users to recover tokens by providing a signature made by the token owner's address. The mechanism draws on the ERC1271 standard.
Because SBTs are bound to an address and are designed to represent its identity, that identity is considered indivisible.
Token recovery should therefore be treated as transferring all of an owner's tokens together.
For this reason, the standard uses the recover function rather than transferFrom or safeTransferFrom.
Backwards compatibility
This EIP proposes a new token interface compatible with ERC721, ERC3525, ERC4906, ERC5192, and ERC5484.
This EIP is also compatible with ERC165.
See the following resource for more on ERC721.
See the following resource for more on ERC3525.
[ERC3525] Understanding Semi-Fungible Tokens Combining ERC721 and ERC20 Features
See the following resource for more on ERC4906.
[ERC4906] An Interface for Logging NFT Metadata Changes
See the following resource for more on ERC5192.
[ERC5192] Understanding Non-Transferable Soulbound NFTs
See the following resource for more on ERC5484.
[ERC5484] Assigning Burn Authorization When Minting SBTs
See the following resource for more on ERC165.
[ERC165] Checking Whether a Contract Supports a Specific Interface
Reference implementation
The implementation code is available here.
Source: https://eips.ethereum.org/EIPS/eip-5727
Security considerations
Because this EIP does not allow token transfers, it does not include the security issues associated with token transfers.
However, users must be cautious when using the recovery mechanism. If users lose control of their private keys, their soulbound tokens may be at risk of theft. An attacker may be able to create a signature using the user's account and recover all of the victim's SBTs. Users should therefore always store their private keys securely and avoid losing them. Developers are also advised to implement a recovery mechanism requiring multiple signatures to recover SBTs. This provides a higher level of security.
References
Austin Zhu (@AustinZhu), Terry Chen terry.chen@phaneroz.io, "ERC-5727: Semi-Fungible Soulbound Token [DRAFT]," Ethereum Improvement Proposals, no. 5727, September 2022. [Online serial]. Available: https://eips.ethereum.org/EIPS/eip-5727.
Conclusion
This article covered ERC5727, a standard proposing an interface for SBTs (also known as soulbound tokens, badges, or account-bound tokens) with a variety of additional features. I hope this explanation was useful.
If you have questions, feel free to contact me via a direct message on Twitter.
I also share information on other platforms. Feel free to explore them.


