---
eip: 5484
label: ERC-5484
title: Consensual Soulbound Tokens
status: Final
type: Standards Track
category: ERC
created: 2022-08-17
requires: 165, 721
official: https://eips.ethereum.org/EIPS/eip-5484
source: https://github.com/ethereum/ERCs/blob/master/ERCS/erc-5484.md
canonical: https://eips.huatuo.xyz/ja/eip-5484/
lang: ja
tldr: 譲渡不可の ERC-721 トークン。発行者と受領者が、各トークンを誰がバーンできるかを事前に合意し、そのルールは発行時に永久に固定される。
tags: [soulbound, sbt, nft, erc-721, credentials]
---

# ERC-5484: Consensual Soulbound Tokens

> Interface for special NFTs with immutable ownership and pre-determined immutable burn authorization

**TL;DR:** 譲渡不可の ERC-721 トークン。発行者と受領者が、各トークンを誰がバーンできるかを事前に合意し、そのルールは発行時に永久に固定される。

## 何を解決するのか

「ソウルバウンド」トークン（SBT）は、譲渡できない NFT です。資格証明、メンバーシップ、ローンや信用の記録など、1 つのアカウントに紐づくものに使われます。初期の実装はそれぞれ異なる方法を取り、たいていはすべての転送を revert させていたため、ツールは SBT と壊れた NFT を明確に区別できませんでした。また、こうしたトークンにとって重要な問い、つまり「誰がトークンを破棄してよいか」についても意見が一致していませんでした。

ERC-5484 は、SBT を通常の [ERC-721](/eip-721/) トークンに 2 つの要素を加えたものとして標準化します。トークンごとの明示的な**バーン権限**と、ソウルバウンドの発行を示す `Issued` イベントです。トークンが存在する前に、双方がバーンのルールに同意します。

## 仕組み

- トークンは [ERC-165](/eip-165/) と ERC-721 に加え、`IERC5484`（インターフェース ID `0x0489b56f`）を実装します。
- 各トークンは `BurnAuth` を持ち、`burnAuth(tokenId)` で読み取れます。

| 値 | バーンできる人 | 仕様にある利用例 |
| --- | --- | --- |
| `IssuerOnly` (0) | 発行者 | ローンの記録 |
| `OwnerOnly` (1) | 保有者 | 有料メンバーシップ |
| `Both` (2) | どちらでも | 資格証明 |
| `Neither` (3) | 誰もできない | 信用履歴 |

- `burnAuth` は受領者に提示されなければならず、発行者は発行**前**にメタデータを提示して受領者の署名を取得しなければなりません。発行後は、`burnAuth` もメタデータも変更できません。
- ミント時に、コントラクトは通常の ERC-721 `Transfer` に加えて `Issued(from, to, tokenId, burnAuth)` を発行します。これにより、インデクサーは NFT 向けツールを壊すことなく SBT の発行を認識できます。
- 転送は引き続き revert しますが、連携する側は失敗して初めて気づくのではなく、先に `supportsInterface(0x0489b56f)` を確認できます。

## サンプルコード

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

import {ERC721} from "@openzeppelin/contracts/token/ERC721/ERC721.sol";

interface IERC5484 {
    enum BurnAuth { IssuerOnly, OwnerOnly, Both, Neither }
    event Issued(address indexed from, address indexed to, uint256 indexed tokenId, BurnAuth burnAuth);
    function burnAuth(uint256 tokenId) external view returns (BurnAuth);
}

contract Credential is ERC721, IERC5484 {
    address public immutable issuer;
    mapping(uint256 => BurnAuth) private _auth;

    constructor() ERC721("Credential", "CRED") { issuer = msg.sender; }

    // Receiver consent (signature over metadata + burnAuth) is checked offchain or here; omitted.
    function issue(address to, uint256 id, BurnAuth auth) external {
        require(msg.sender == issuer, "issuer only");
        _auth[id] = auth;
        _safeMint(to, id);
        emit Issued(msg.sender, to, id, auth);
    }

    function burnAuth(uint256 id) external view returns (BurnAuth) {
        _requireOwned(id);
        return _auth[id];
    }

    function burn(uint256 id) external {
        BurnAuth a = _auth[id];
        bool ok = (msg.sender == issuer && (a == BurnAuth.IssuerOnly || a == BurnAuth.Both))
               || (msg.sender == ownerOf(id) && (a == BurnAuth.OwnerOnly || a == BurnAuth.Both));
        require(ok, "not authorized");
        _burn(id);
    }

    // Block every transfer except mint and burn.
    function _update(address to, uint256 id, address auth) internal override returns (address from) {
        from = _ownerOf(id);
        require(from == address(0) || to == address(0), "soulbound");
        return super._update(to, id, auth);
    }

    function supportsInterface(bytes4 iid) public view override returns (bool) {
        return iid == type(IERC5484).interfaceId || super.supportsInterface(iid);
    }
}
```

## 知っておくべきこと

- ステータス: **Final**。
- 仕様は発行前に受領者の署名を要求していますが、その形式は定義していません。実装者が選びます（EIP-712 の型付きメッセージが自然な選択です）。
- 根拠の文章では 2 番目の選択肢を `ReceiverOnly` と呼んでいますが、インターフェースでは `OwnerOnly` という名前です。重要なのはインターフェースの enum です。
- バーンは鍵のローテーションへの道です。権限を持つ側が古いトークンをバーンし、発行者が新しいアドレスに再発行します。
- 代替案: [ERC-5192](/eip-5192/)（最小限の `locked()` シグナル）、[ERC-6239](/eip-6239/)（セマンティック SBT）、[ERC-4973](/eip-4973/)（アカウントバウンドトークン、Review 中）。


---

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