• Creates a Solana transaction to wrap SOL into wSOL and transfer it to Neon EVM.

    This function performs the following operations:

    1. Wraps SOL into wSOL by creating an associated token account (if necessary), transferring SOL, and syncing the native balance.
    2. Generates a Neon transaction to transfer 0.1 wSOL from Solana to Neon.
    3. Creates and signs a transaction using an Ethers wallet for Neon EVM.
    4. Adds all necessary instructions to the Solana transaction and returns it.

    Parameters

    Returns Promise<Transaction>

    A Solana Transaction that wraps SOL to wSOL and transfers it to Neon.

    const transaction = await createWrapAndTransferSOLTransaction({
    connection,
    proxyApi,
    neonEvmProgram,
    solanaWallet: userWallet,
    neonWallet: "0xNeonWalletAddress",
    walletSigner: ethersSigner,
    splToken: wSolToken,
    amount: "0.1",
    chainId: 245022926
    });