Program ID
Dependency
CPI Instruction Scope
The full instruction list is documented in Program Instructions. CPI integrations most often need:
Creator-managed flows such as presale initialization, Merkle root config, operator setup, creator withdrawal, fee collection, and unsold token action can also be called by CPI, but they require stricter authority and lifecycle planning.
Event CPI Accounts
Most account structs use#[event_cpi]. Generated clients include these accounts after the primary accounts:
Omitting these accounts from a CPI call can cause account validation or account-count failures.
Account Planning
Read mints, vaults, token program flags, mode, whitelist mode, and registry state from the
Presale account whenever possible. Avoid deriving business assumptions from user input alone.
Token 2022 Remaining Accounts
Presale Vault supports Token 2022 transfer hooks throughRemainingAccountsInfo:
If a mint has a transfer-hook program, include the required hook accounts in the remaining accounts and set the matching slice length. If a mint does not have a hook program, do not pass transfer-hook accounts for that mint.

