spl_token_2022::extension::transfer_fee::instruction

Function initialize_transfer_fee_config

Source
pub fn initialize_transfer_fee_config(
    token_program_id: &Pubkey,
    mint: &Pubkey,
    transfer_fee_config_authority: Option<&Pubkey>,
    withdraw_withheld_authority: Option<&Pubkey>,
    transfer_fee_basis_points: u16,
    maximum_fee: u64,
) -> Result<Instruction, ProgramError>
Expand description

Create a InitializeTransferFeeConfig instruction