Function createTransferCheckedWithFeeInstruction

  • Construct an TransferCheckedWithFee instruction

    Parameters

    • source: PublicKey

      The source account

    • mint: PublicKey

      The token mint

    • destination: PublicKey

      The destination account

    • authority: PublicKey

      The source account's owner/delegate

    • amount: bigint

      The amount of tokens to transfer

    • decimals: number

      The expected number of base 10 digits to the right of the decimal place

    • fee: bigint

      The expected fee assesed on this transfer, calculated off-chain based on the transferFeeBasisPoints and maximumFee of the mint.

    • multiSigners: (PublicKey | Signer)[] = []
    • programId: PublicKey = TOKEN_2022_PROGRAM_ID

      SPL Token program account

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc