---
eip: 5114
label: ERC-5114
title: Soulbound Badge
status: Last Call
type: Standards Track
category: ERC
created: 2022-05-30
official: https://eips.ethereum.org/EIPS/eip-5114
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5114.md
canonical: https://eips.huatuo.xyz/eip-5114/
lang: en
tldr: A soulbound badge that is bound at mint time to a specific NFT (contract address plus token ID), never moves afterward, and must point to immutable, content-addressed metadata.
tags: [soulbound, badge, nft, identity]
---

# ERC-5114: Soulbound Badge

> A token that is attached to a "soul" at mint time and cannot be transferred after that.

**TL;DR:** A soulbound badge that is bound at mint time to a specific NFT (contract address plus token ID), never moves afterward, and must point to immutable, content-addressed metadata.

## What problem does it solve?

Badges for achievements, memberships or reputation lose meaning if they can be bought or moved. Many soulbound designs bind a token to an address, but addresses get lost, rotated or shared.

ERC-5114 binds a badge to a **"soul"**, which is another NFT, identified by `(nftAddress, nftTokenId)`. A persona is represented by that NFT, and the badges attached to it build up a permanent record. Neither the user nor the minter can move, change or censor a badge after minting.

## How it works

The interface is small:

| Function / event | Purpose |
| --- | --- |
| `Mint(badgeId, nftAddress, nftTokenId)` | Emitted once per badge at mint |
| `ownerOf(badgeId)` | Returns the NFT the badge is bound to; never changes |
| `collectionUri()` | Metadata for the whole badge collection |
| `badgeUri(badgeId)` | Metadata for one badge; overrides collection data |
| `metadataFormat()` | A string naming the format of that metadata |

Rules that make the badge "permanent":

- `ownerOf` must always return the same value as the original `Mint` event, and must throw for unminted badges.
- Both URIs must be **immutable and content-addressable** (e.g. `ipfs://`, not `http://`), and any links inside the content must follow the same rule. This stops a minter from editing or deleting a badge's content later.
- The metadata format is not defined here; `metadataFormat()` tells clients which format to expect.

Because badges never move, clients can cache results aggressively.

## Sample code

Reading the soul a badge is bound to (ethers v6):

```ts
import { Contract, JsonRpcProvider } from "ethers";

const provider = new JsonRpcProvider(process.env.RPC_URL);
const badges = new Contract(
  process.env.BADGE_ADDRESS!,
  [
    "function ownerOf(uint256 badgeId) view returns (address nftAddress, uint256 nftTokenId)",
    "function badgeUri(uint256 badgeId) view returns (string)",
    "function metadataFormat() view returns (string)",
  ],
  provider,
);

const [nftAddress, nftTokenId] = await badges.ownerOf(1n);
console.log(`badge #1 is bound to ${nftAddress} #${nftTokenId}`);
console.log(await badges.badgeUri(1n), await badges.metadataFormat());
```

## Things to know

- Status is **Last Call** (deadline listed as 2023-09-19, not yet Final), so details could still change.
- A soul is a **persona**, not a person: the underlying NFT can be transferred, taking all its badges with it. Do not assume one fixed human behind it.
- A contract can claim compliance yet hide a transfer path it has not used yet; verify implementations before trusting them.
- Badges can be bound to other badges, so software walking such chains must detect loops.
- Related soulbound designs: [ERC-4973](/eip-4973/), [ERC-4671](/eip-4671/), and the Final [ERC-5192](/eip-5192/).


---

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