> ## Documentation Index
> Fetch the complete documentation index at: https://solana.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> This page is part of the Solana developer documentation at https://solana.com/developers/docs. Append `.md` to any docs URL, or send `Accept: text/markdown`, to get the page as Markdown.
> Index of all pages: https://solana.com/llms.txt. Per-section indexes such as https://solana.com/developers/docs/payments/llms.txt are smaller; prefer them when working on one task.
> Coding agents: install the official Solana skill for current APIs and conventions with `npx skills add https://github.com/solana-foundation/solana-dev-skill` (also served at https://solana.com/SKILL.md).
> Code in the cookbook and task pages comes from tested example files. Prefer it over writing API calls from memory.

# ERC5192 on Solana: Soulbound Tokens

> Issue non-transferable tokens on Solana with the Token Extensions non-transferable extension, and decide how holders and issuers can remove them.

ERC5192 marks an NFT as locked, so wallets and marketplaces know it cannot be
transferred. On Solana, the Token Extensions Program enforces this at the token
level: a mint with the non-transferable extension rejects every transfer.

## 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`](/developers/docs/tokens/extensions/non-transferrable-tokens)
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.

<Columns cols={2}>
<Card title="ERC5192">

- `locked()` reports the state to wallets.
- Each contract must block transfers in its own code.
- A token can be locked or unlocked individually.

</Card>
<Card title="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.

</Card>
</Columns>

```bash Terminal
spl-token --program-id TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb create-token \
  --decimals 0 \
  --enable-non-transferable
```

## 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.

<Steps>
<Step title="Create the mint">

Enable the extension and set 0 decimals for a credential.

</Step>
<Step title="Issue">

The mint authority mints one token to the holder's token account.

</Step>
<Step title="Hold">

The holder cannot transfer it to another account.

</Step>
<Step title="Remove">

The holder burns the token and closes the account to reclaim the rent deposit.

</Step>
</Steps>

| 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.

<Columns cols={3}>
<Card title="Issuer revocation" href="/developers/docs/tokens/extensions/permanent-delegate" arrow>

Add a permanent delegate so the issuer can burn a credential from any account.

</Card>
<Card title="Onchain details" href="/developers/docs/tokens/extensions/metadata" arrow>

Add the metadata extension to store the credential's name and a URI.

</Card>
<Card title="Gated issuance" href="/developers/docs/tokens/extensions/default-state" arrow>

Add default account state so new token accounts start frozen. The freeze
authority thaws an account before the issuer mints to it.

</Card>
</Columns>

<Warning>

**Decide before you create the mint**

The 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.

</Warning>

## Next steps

<Columns cols={3}>
<Card title="Non-transferable tokens" href="/developers/docs/tokens/extensions/non-transferrable-tokens" arrow>

Create and test a non-transferable mint.

</Card>
<Card title="ERC721 on Solana" href="/developers/docs/migrate-to-solana/ethereum/standards/erc721">

Compare the NFT standards available on Solana.

</Card>
<Card title="ERC3643 on Solana" href="/developers/docs/migrate-to-solana/ethereum/standards/erc3643">

Issue permissioned tokens with more controls.

</Card>
</Columns>
