---
eip: 5192
label: ERC-5192
title: Minimal Soulbound NFTs
status: Final
type: Standards Track
category: ERC
created: 2022-07-01
requires: 165, 721
official: https://eips.ethereum.org/EIPS/eip-5192
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5192.md
canonical: https://eips.huatuo.xyz/eip-5192/
lang: en
tldr: "The smallest possible soulbound-token standard: an ERC-721 extension with a `locked(tokenId)` flag so wallets and marketplaces can detect that a token cannot be transferred."
tags: [nft, soulbound, erc721, identity]
---

# ERC-5192: Minimal Soulbound NFTs

> Minimal interface for soulbinding EIP-721 NFTs

**TL;DR:** The smallest possible soulbound-token standard: an ERC-721 extension with a `locked(tokenId)` flag so wallets and marketplaces can detect that a token cannot be transferred.

## What problem does it solve?

Some tokens should never change hands: credentials, attendance badges, achievements, memberships, reputation. These "soulbound" tokens (named after non-tradeable items in World of Warcraft) were being built as normal [ERC-721](/eip-721/) contracts that simply revert on transfer.

That works on-chain, but a wallet or marketplace has no way to know in advance. It shows a "Transfer" or "List for sale" button, the user tries, and the transaction fails. Each project also signalled non-transferability differently.

ERC-5192 adds a minimal, detectable flag so tools can recognise soulbound tokens up front.

## How it works

The interface has one function and two events:

```solidity
interface IERC5192 {
    event Locked(uint256 tokenId);
    event Unlocked(uint256 tokenId);
    function locked(uint256 tokenId) external view returns (bool);
}
```

- If `locked(tokenId)` returns `true`, every ERC-721 function that would transfer that token **must** revert.
- `Locked` / `Unlocked` are emitted when the status changes, and at mint to announce the initial status.
- Querying a token owned by the zero address (i.e. one that does not exist) must revert.
- The contract must return `true` from `supportsInterface(0xb45a3c0e)` ([ERC-165](/eip-165/)).

Because locking is per token, a contract can mix transferable and non-transferable tokens, or unlock a token later.

## Sample code

A simple soulbound badge using OpenZeppelin v5:

```solidity
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.20;

import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "@openzeppelin/contracts/access/Ownable.sol";

interface IERC5192 {
    event Locked(uint256 tokenId);
    event Unlocked(uint256 tokenId);
    function locked(uint256 tokenId) external view returns (bool);
}

contract Badge is ERC721, Ownable, IERC5192 {
    constructor() ERC721("Badge", "BDG") Ownable(msg.sender) {}

    function mint(address to, uint256 tokenId) external onlyOwner {
        _safeMint(to, tokenId);
        emit Locked(tokenId);
    }

    function locked(uint256 tokenId) external view returns (bool) {
        _requireOwned(tokenId); // reverts for nonexistent tokens
        return true;
    }

    // Allow mint (from == 0) and burn (to == 0); block everything else.
    function _update(address to, uint256 tokenId, address auth) internal override returns (address) {
        address from = _ownerOf(tokenId);
        require(from == address(0) || to == address(0), "soulbound");
        return super._update(to, tokenId, auth);
    }

    function supportsInterface(bytes4 id) public view override returns (bool) {
        return id == 0xb45a3c0e || super.supportsInterface(id);
    }
}
```

Checking from a frontend (ethers v6):

```ts
const isSBT = await nft.supportsInterface("0xb45a3c0e");
const isLocked = isSBT && (await nft.locked(tokenId));
```

## Things to know

- **Status: Final.**
- "Locked" means transfers revert. It does not say whether the holder can burn the token, or who can unlock it; those are up to each contract.
- The standard only requires transfer functions to revert; it says nothing about `approve`, which is harmless but useless for a locked token.
- Related approaches add more structure: [ERC-5484](/eip-5484/) (consensual soulbound tokens with burn authorisation), [ERC-4973](/eip-4973/) (account-bound tokens) and [ERC-5114](/eip-5114/) (soulbound badges bound to another NFT).


---

This is an unofficial plain-language summary. Read the full specification: https://eips.ethereum.org/EIPS/eip-5192
