Function createTransferCheckedWithTransferHookInstruction

  • Construct an transferChecked instruction with extra accounts for transfer hook

    Parameters

    • connection: Connection

      Connection to use

    • source: PublicKey

      Source account

    • mint: PublicKey

      Mint to update

    • destination: PublicKey

      Destination account

    • owner: PublicKey

      Owner of the source account

    • amount: bigint

      The amount of tokens to transfer

    • decimals: number

      Number of decimals in transfer amount

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

      The signer account(s) for a multisig

    • Optional commitment: Commitment

      Commitment to use

    • programId: PublicKey = TOKEN_PROGRAM_ID

      SPL Token program account

    Returns Promise<TransactionInstruction>

    Instruction to add to a transaction

Generated using TypeDoc