What ERC5192 defines
ERC5192 is a minimal extension to ERC721. It adds alocked(tokenId) view
function and two events. The contract still has to block transfers in its own
code, and each project implements that logic. Typical uses are credentials,
memberships, and attestations that should stay with one wallet.
The non-transferable extension
Enable theNonTransferable
extension when you create the mint. The token program then rejects Transfer
and TransferChecked for every token account of that mint. You write no
transfer logic.
ERC5192
locked()reports the state to wallets.- Each contract must block transfers in its own code.
- A token can be locked or unlocked individually.
Solana
- The extension is visible on the mint account.
- The token program blocks transfers for every holder.
- The setting applies to the whole mint and cannot be removed.
Terminal
Issue, hold, and remove
A non-transferable token can still be minted and burned. One mint can issue the same credential to many holders. For a unique token per holder, create a mint for each holder, mint one unit, and remove the mint authority.1
Create the mint
Enable the extension and set 0 decimals for a credential.
2
Issue
The mint authority mints one token to the holder’s token account.
3
Hold
The holder cannot transfer it to another account.
4
Remove
The holder burns the token and closes the account to reclaim the rent deposit.
| Action | Allowed | Who |
|---|---|---|
| Mint | Yes | The mint authority |
| Transfer | No | No one |
| Burn | Yes | The token account owner, an approved delegate, or the mint’s permanent delegate |
| Close the empty account | Yes | The token account owner or its close authority |
Design choices
Combine the extension with others to match how your credential should behave.Issuer revocation
Add a permanent delegate so the issuer can burn a credential from any account.
Onchain details
Add the metadata extension to store the credential’s name and a URI.
Gated issuance
Add default account state so new token accounts start frozen. The freeze
authority thaws an account before the issuer mints to it.
Decide before you create the mintThe non-transferable extension must be enabled when you create the mint. You
cannot make an existing mint non-transferable, and you cannot make a
non-transferable mint transferable later.