How to Check a Token-2022 Transfer Hook Before Moving an NFT

A creator's NFT can be resold on marketplaces without the creator's involvement, raising the question of whether royalties will still be paid. Solana's Token-2022 program addresses this by letting a mint carry a Transfer Hook, a program that runs on every transfer and can reject it. The Wen New Standard uses this mechanism to enforce creator royalties. The article is an educational, unaudited walkthrough on devnet showing how to detect the token program, read the hook program ID, and check whether the hook's authority can later change it. It stresses using TransferChecked with the required extra accounts and copying program IDs only from official sources.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in