spl_token_2022::extension::transfer_hook::instruction

Function initialize

Source
pub fn initialize(
    token_program_id: &Pubkey,
    mint: &Pubkey,
    authority: Option<Pubkey>,
    transfer_hook_program_id: Option<Pubkey>,
) -> Result<Instruction, ProgramError>
Expand description

Create an Initialize instruction