Function transferCheckedWithFeeAndTransferHook

  • Transfer tokens from one account to another, asserting the transfer fee, token mint, and decimals

    Parameters

    • connection: Connection

      Connection to use

    • payer: Signer

      Payer of the transaction fees

    • source: PublicKey

      Source account

    • mint: PublicKey

      Mint for the account

    • destination: PublicKey

      Destination account

    • authority: PublicKey | Signer

      Authority of the source account

    • amount: bigint

      Number of tokens to transfer

    • decimals: number

      Number of decimals in transfer amount

    • fee: bigint

      The calculated fee for the transfer fee extension

    • multiSigners: Signer[] = []

      Signing accounts if owner is a multisig

    • Optional confirmOptions: ConfirmOptions

      Options for confirming the transaction

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns Promise<TransactionSignature>

    Signature of the confirmed transaction

Generated using TypeDoc