has_restricted_extensions

Function has_restricted_extensions 

Source
pub fn has_restricted_extensions(mint_data: &[u8]) -> bool
Expand description

Check if a mint has any restricted extensions.

Restricted extensions (Pausable, PermanentDelegate, TransferFeeConfig, TransferHook, DefaultAccountState) require using the restricted pool derivation path.

§Arguments

  • mint_data - The raw mint account data

§Returns

true if the mint has any restricted extensions, false otherwise