Creates a Solana transaction to wrap SOL into wSOL and transfer it to Neon EVM.
This function performs the following operations:
The parameters required for the transaction.
A Solana Transaction that wraps SOL to wSOL and transfers it to Neon.
Transaction
const transaction = await createWrapAndTransferSOLTransaction({ connection, proxyApi, neonEvmProgram, solanaWallet: userWallet, neonWallet: "0xNeonWalletAddress", walletSigner: ethersSigner, splToken: wSolToken, amount: "0.1", chainId: 245022926}); Copy
const transaction = await createWrapAndTransferSOLTransaction({ connection, proxyApi, neonEvmProgram, solanaWallet: userWallet, neonWallet: "0xNeonWalletAddress", walletSigner: ethersSigner, splToken: wSolToken, amount: "0.1", chainId: 245022926});
Creates a Solana transaction to wrap SOL into wSOL and transfer it to Neon EVM.
This function performs the following operations: