Provision your mint
One signed transaction creates your allowlist PDA, OFAC PDA, Token-2022 mint with TransferHook ext, and the ExtraAccountMetaList.
One signed transaction creates your allowlist PDA, OFAC PDA, Token-2022 mint with TransferHook ext, and the ExtraAccountMetaList.
Transfer to a wallet that isn't on your allowlist. The hook should
reject with policy.allowlist.fail.
Single CPI to add_allowed. The MetaHook program code
stays untouched — only the policy state moves.
Same transfer. Both policies stamp PASS and a
MetaHookAuditEvent appears in the tx logs.
| MetaHook program | |
| policy_allowlist program | |
| policy_sanctions_ofac program | |
| policy_sns_allowlist program | 4J57Rh4w6k8VxJAptKVP2v8St273Msy9afskc16qFuTo |
| Your mint | — provision first — |
| Demo destination wallet | — provision first — |