Function createExecuteInstruction

  • Construct an ExecuteInstruction for a transfer hook program, without the additional accounts

    Parameters

    • programId: PublicKey

      The program ID of the transfer hook program

    • source: PublicKey

      The source account

    • mint: PublicKey

      The mint account

    • destination: PublicKey

      The destination account

    • owner: PublicKey

      Owner of the source account

    • validateStatePubkey: PublicKey

      The validate state pubkey

    • amount: bigint

      The amount of tokens to transfer

    Returns TransactionInstruction

    Instruction to add to a transaction

Generated using TypeDoc