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.
ERC-6454 proposes a minimal interface for determining whether a particular NFT can be transferred.
This article translates, summarizes, and expands on the following specification.
For background on interfaces, see the following article.
https://chaldene.net/erc721#st-toc-h-5
Overview
ERC-6454, the Minimalistic Transferable Interface for Non-Fungible Tokens, extends ERC-721 with a standardized way to query transferability.
An implementation can restrict transfers, allowing NFTs to remain associated with particular accounts or contracts.
Motivation
NFTs serve many purposes beyond trading. Transfer restrictions can support additional use cases, including:
- Verifiable attribution.
- Persistent association with particular properties.
Verifiable attribution
NFTs can represent achievements, such as charitable contributions or sporting accomplishments.
If an achievement NFT can be freely transferred, its current owner may not be the person who earned it. Restricting transfers can preserve the association between the token and its intended recipient.
This can support verifiable achievement records. However, non-transferability alone does not prove the truth of the underlying achievement or the identity of the person controlling an account. The issuance process remains important.
Persistent properties
NFT properties can distinguish tokens and contribute to their perceived rarity. Centralized management of properties can introduce uncertainty about whether the original characteristics will be retained.
A game might use non-transferable NFTs to represent skills associated with particular players or characters. Players can retain the skills they earn without selling them separately to other players.
This enables game designs based on progression and customization rather than unrestricted asset trading.
Transfer restrictions and metadata immutability are separate properties. Implementations must independently enforce any requirement that metadata cannot change.
Specification
Function
pragma solidity ^0.8.16;
interface IERC6454 /* is IERC165 */ {
function isTransferable(uint256 tokenId, address from, address to) external view returns (bool);
}The function queries whether a transfer involving the specified token ID, source, and destination is permitted under the token's transferability policy.
A false result indicates that the corresponding operation should not proceed. Queries for nonexistent tokens must revert except in the minting case described by the specification.
Implementations may additionally check authorization associated with the source address, although clients must not assume that such checks are performed.
Parameters
tokenId- The NFT identifier.
from- The source address supplied for the transferability query.
to- The destination address.
Return value
A Boolean indicating whether the requested operation is permitted by the transferability policy.
Additional requirements
The zero address has special meaning when querying minting, burning, and general transferability:
- Using the zero address for both from and to queries general transferability.
- Using a zero from address and a nonzero to address represents minting. This allows a query concerning a token ID that does not yet exist.
- Using a nonzero from address and a zero to address represents burning.
- An ordinary transfer that violates the token's transferability policy must revert.
- Minting and burning are evaluated separately from ordinary transferability. A non-transferable NFT is not necessarily unmintable or unburnable.
The original Japanese article contains an inconsistent description of the zero-address combination for burning. The conventional ERC-721 direction and the reference implementation distinguish burning by a zero destination and a nonzero source.
An implementation may include additional checks concerning the source address, but callers must not rely on this query as a substitute for ERC-721 authorization checks. In particular, the from argument should not automatically be treated as the transaction caller.
Rationale
Why introduce another standard?
Is a new proposal necessary when NFT standards already exist?
The objective is to provide a minimal, interoperable interface for transferability queries rather than prescribing a complete non-transferable token implementation.
Why is there no event?
Why does the interface not define an event?
Transferability may depend on conditions that change without a transaction being executed against the token contract. For example, a block-number-based restriction can expire automatically. A mandatory event would not reliably represent every possible change.
Why not standardize state management?
Should the interface define operations for changing transferability?
The proposal deliberately leaves state-management mechanisms to implementations. This preserves a minimal interface and allows custom policies.
Why standardize the query?
Why is an EIP useful for a single operation?
A contract can restrict transfers through its own transfer logic, but external applications need a common way to discover such restrictions before attempting the operation.
The standardized query can help applications avoid unnecessary failed transactions and improve integration. It does not guarantee that a later transfer will succeed, since state and authorization may change.
Why not accept only a token ID?
Could the function take only tokenId?
An earlier design considered this approach. However, transferability can depend on the source and destination and may differ between minting, burning, and ordinary transfers.
Including both addresses allows more expressive policies and the zero-address query conventions.
Frontend integration
How can applications provide a better user experience?
Wallets and marketplaces can query transferability before presenting or submitting a transfer operation.
Without a standardized query, applications may need to simulate or estimate gas for the transfer and inspect the resulting error. ERC-6454 provides a more explicit way to discover applicable restrictions.
Applications should still perform normal transaction validation and simulation where appropriate.
Transfer authorization
Should isTransferable enforce transfer authorization?
The proposal leaves additional authorization checks optional. ERC-721 already defines ownership and approval mechanisms, and requiring all of those checks in the transferability query would introduce additional complexity and potentially increase gas consumption.
Applications must independently verify that the actual caller is authorized to perform the requested operation.
Compatibility
ERC-6454 extends ERC-721 without replacing its ordinary interface. Compatible implementations enforce their transfer restrictions through the token's execution logic.
Tests
The original article provides the following test command and test suite.
cd ../assets/eip-6454
npm install
npx hardhat testimport { ethers } from "hardhat";
import { expect } from "chai";
import { BigNumber } from "ethers";
import { loadFixture } from "@nomicfoundation/hardhat-network-helpers";
import { SignerWithAddress } from "@nomiclabs/hardhat-ethers/signers";
import { ERC721TransferableMock } from "../typechain-types";
async function transferableTokenFixture(): Promise<ERC721TransferableMock> {
const factory = await ethers.getContractFactory("ERC721TransferableMock");
const token = await factory.deploy("Chunky", "CHNK");
await token.deployed();
return token;
}
describe("Transferable", async function () {
let nonTransferable: ERC721TransferableMock;
let owner: SignerWithAddress;
let otherOwner: SignerWithAddress;
const tokenId = 1;
beforeEach(async function () {
const signers = await ethers.getSigners();
owner = signers[0];
otherOwner = signers[1];
nonTransferable = await loadFixture(transferableTokenFixture);
await nonTransferable.mint(owner.address, 1);
await nonTransferable.mint(otherOwner.address, 2);
});
it("can support IRMRKNonTransferable", async function () {
expect(await nonTransferable.supportsInterface("0x91a6262f")).to.equal(true);
});
it("does not support other interfaces", async function () {
expect(await nonTransferable.supportsInterface("0xffffffff")).to.equal(false);
});
it("cannot transfer", async function () {
expect(
nonTransferable
.connect(owner)
["safeTransferFrom(address,address,uint256)"](
owner.address,
otherOwner.address,
tokenId + 1
)
).to.be.revertedWithCustomError(nonTransferable, "CannotTransferNonTransferable");
});
it("returns the expected transferability state", async function () {
expect(await nonTransferable['isTransferable(uint256,address,address)'](tokenId, ethers.constants.AddressZero, ethers.constants.AddressZero)).to.equal(false);
expect(await nonTransferable['isTransferable(uint256,address,address)'](tokenId, ethers.constants.AddressZero, otherOwner.address)).to.equal(true);
})
it("reverts if token does not exist", async function () {
await expect(nonTransferable['isTransferable(uint256,address,address)'](10, owner.address, otherOwner.address)).to.be.revertedWith("ERC721: invalid token ID");
});
it("can burn", async function () {
await nonTransferable.connect(owner).burn(tokenId);
await expect(nonTransferable.ownerOf(tokenId)).to.be.revertedWith(
"ERC721: invalid token ID"
);
});
});Reference implementation
// SPDX-License-Identifier: CC0-1.0
pragma solidity ^0.8.16;
import "@openzeppelin/contracts/token/ERC721/ERC721.sol";
import "../IERC6454.sol";
import "hardhat/console.sol";
error CannotTransferNonTransferable();
/**
* @title ERC721TransferableMock
* Used for tests
*/
contract ERC721TransferableMock is IERC6454, ERC721 {
address public owner;
constructor(
string memory name,
string memory symbol
) ERC721(name, symbol) {
owner = msg.sender;
}
function mint(address to, uint256 amount) public {
_mint(to, amount);
}
function burn(uint256 tokenId) public {
_burn(tokenId);
}
function isTransferable(uint256 tokenId, address from, address to) public view returns (bool) {
if (from == address(0x0) && to == address(0x0)){
return false;
}
// Only allow minting and burning
if (from == address(0x0) || to == address(0x0)){
return true;
}
_requireMinted(tokenId);
return false;
}
function _beforeTokenTransfer(
address from,
address to,
uint256 firstTokenId,
uint256 batchSize
) internal virtual override {
super._beforeTokenTransfer(from, to, firstTokenId, batchSize);
uint256 lastTokenId = firstTokenId + batchSize;
for (uint256 i = firstTokenId; i < lastTokenId; ) {
if (!isTransferable(i, from, to)) {
revert CannotTransferNonTransferable();
}
unchecked {
i++;
}
}
}
function supportsInterface(
bytes4 interfaceId
) public view virtual override(ERC721) returns (bool) {
return interfaceId == type(IERC6454).interfaceId
|| super.supportsInterface(interfaceId);
}
}The example permits minting and burning while rejecting ordinary transfers. Its transfer hook checks the transferability policy for the affected token IDs.
The examples are retained unchanged from the original article. They have not been independently compiled, executed, or audited as part of this translation. Developers should review the mint and burn authorization policies as well as compatibility with the OpenZeppelin version in use.
Security
A contract can claim support for an interface while returning misleading values. For example, it could report that a token is non-transferable even when its actual transfer logic permits transfers.
Applications should evaluate the trustworthiness of the relevant contract rather than treating interface support as proof of correct behavior.
Transferability can also change over time. Wallets, marketplaces, and DApps should refresh the relevant state when displaying tokens and before submitting operations.
A transferability query is an observation at a particular execution state, not a guarantee about a future transaction.
Conclusion
ERC-6454 defines a minimal interface for discovering NFT transfer restrictions. It supports reusable integrations while leaving the actual restriction policy and state-management mechanism to each implementation.
Questions are welcome via Twitter @cardene777.

