EVM -> Solana

ERC6551 on Solana: Token Bound Accounts

ERC6551 gives every NFT a smart contract account that the NFT's owner controls. On Solana, you get the same result with a PDA derived from the NFT's mint address and a program that lets the current holder act for it.

What ERC6551 defines

ERC6551 adds a registry contract that deploys an account contract for any ERC721 token. The account's address is deterministic, and its code lets whoever owns the NFT execute calls from it. Assets held by the account move with the NFT when it is sold.

01
Registry creates an account
The address is computed from the implementation, the chain ID, the NFT contract, the token ID, and a salt.
02
Account holds assets
It can receive tokens and other NFTs.
03
Owner executes
The account checks ownerOf(tokenId) and forwards the call.
04
NFT is sold
The new owner controls the account and everything in it.
A token bound account on Ethereum.

A PDA for each NFT

A PDA is an address derived from a program ID and seeds. Use the NFT's mint address as a seed, and each NFT gets one deterministic address. No registry transaction is needed: you can derive the address and send SOL to it right away. Token accounts owned by the PDA still have to be created and funded.

Wallet program
Verifies the holder, then signs for the PDA
derives one per NFT mint
NFT wallet PDA
Seeds: a prefix and the mint address
Token accounts
Owned by the PDA
SOL balance
Held by the PDA
One program gives every NFT a wallet.
ERC6551Solana
Registry contractPDA derivation, with no transaction
Account implementation contractYour wallet program, deployed once
ownerOf(tokenId) checkA check that the signer's token account holds the NFT
execute()An instruction that signs for the PDA in a CPI

Authorize the current holder

The program must prove that the signer holds the NFT before it acts for the PDA. With Anchor, account constraints express the checks: the mint is an NFT with a supply of 1 and 0 decimals, the token account belongs to the signer, it is for this mint, and it holds the single unit.

Rust
#[derive(Accounts)]
pub struct Execute<'info> {
    pub holder: Signer<'info>,

    // Only an NFT qualifies: one unit, no decimals.
    #[account(
        constraint = nft_mint.supply == 1 && nft_mint.decimals == 0 @ WalletError::NotAnNft,
    )]
    pub nft_mint: InterfaceAccount<'info, Mint>,

    // Proves that the signer holds the NFT right now.
    #[account(
        token::mint = nft_mint,
        token::authority = holder,
        constraint = nft_token_account.amount == 1 @ WalletError::NotHolder,
    )]
    pub nft_token_account: InterfaceAccount<'info, TokenAccount>,

    /// CHECK: The NFT's wallet. Only this program can sign for it.
    #[account(seeds = [b"nft-wallet", nft_mint.key().as_ref()], bump)]
    pub nft_wallet: UncheckedAccount<'info>,
}

After the checks pass, the instruction calls another program with CpiContext::new_with_signer and the PDA's seeds. For example, it can transfer tokens out of a token account that the PDA owns. See token CPIs for the transfer itself.

Side by side

ERC6551
A registry deploys one account contract per NFT.
The account can call any contract with arbitrary calldata.
Works with existing ERC721 collections without changes.
Solana
One program serves every NFT, and deriving a PDA needs no transaction.
The program defines which actions the PDA can take, since every CPI needs its accounts listed.
Works with any NFT that has a mint address, without changing the NFT.

Pitfalls to check

Review these before you deploy a wallet program.

Check that the mint is an NFT: a supply of 1, 0 decimals, and no mint authority that can issue more. For Metaplex NFTs, the master edition holds that authority. Otherwise more than one holder can pass the check for the same wallet.
Check the amount, the mint, and the owner of the NFT token account. A token account with a zero balance still exists after the NFT is sold.
Fix the seed prefix in the program so a caller cannot derive a PDA for a different purpose.
Limit which programs the PDA can call, or validate each target program ID. An open-ended execute instruction lets the wallet PDA sign for any program a caller passes in, including a malicious one supplied by a front end.
Warn buyers that the wallet's contents move with the NFT. A seller can empty the wallet immediately before a sale, so have the buyer's transaction check the contents.
For Metaplex Core or compressed NFTs, verify ownership through that standard's account or proof, since they have no token account.

Next steps

© 2026 Ίδρυμα Solana. Με επιφύλαξη παντός δικαιώματος.
ERC6551 on Solana: Token Bound Accounts | Solana