How to sign transaction using wallet ?

How to sign transactions using waller or provider.wallet ?

I assume you are referring to this repository GitHub - solana-labs/wallet-adapter: Modular TypeScript wallet adapters and components for Solana applications.

Here is an example

import { useWallet, useConnection } from "@solana/wallet-adapter-react";

// ...
const { connection } = useConnection();
const { publicKey, connected, sendTransaction } = useWallet();

const { blockhash } = await connection.getLatestBlockhash();

// tx is the transaction you built

tx.feePayer = publicKey;
tx.recentBlockhash = blockhash;

sig = await sendTransaction(tx, connection);

console.log(`Transaction signature ${sig}`);

I am using this code, but yours is ok.

      const instruction = await stream_client.create(
        connection,
        new anchor.web3.PublicKey('DLxB9dSQtA4WJ49hWFhxqiQkD9v6m67Yfk9voxpxrBs4'),
        Buffer.from(seed),
        provider.wallet.publicKey,
        provider.wallet.publicKey,
        possibleSourceTokenPubkey,
        destinationTokenPubkey,
        mintAddress,
        schedules
      )
    const signer = Keypair.fromSecretKey(payer.secretKey); //this I can not get from wallet adapter and I don't think that I can use  stream_client.signTransactionInstructions.

    const tx = await stream_client.signTransactionInstructions(
      connection,
      [signer],
      provider.wallet.publicKey,
      instruction
    );
    // console.log(`Transaction: ${tx}`);```
    

Thank you

Any suggestions guys ?