Function createInitializeTransferFeeConfigInstruction

  • Construct an InitializeTransferFeeConfig instruction

    Parameters

    • mint: PublicKey

      Token mint account

    • transferFeeConfigAuthority: null | PublicKey

      Optional authority that can update the fees

    • withdrawWithheldAuthority: null | PublicKey

      Optional authority that can withdraw fees

    • transferFeeBasisPoints: number

      Amount of transfer collected as fees, expressed as basis points of the transfer amount

    • maximumFee: bigint

      Maximum fee assessed on transfers

    • programId: PublicKey = TOKEN_2022_PROGRAM_ID

      SPL Token program account

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc