What ERC5192 defines
ERC5192 is a minimal extension to ERC721. It adds a locked(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 the NonTransferable 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.
locked() reports the state to wallets.spl-token --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb create-token \
--decimals 0 \
--enable-non-transferableIssue, 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.
| 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.