text: const web3 = require("@solana/web3.js");
  
  const transferSOL= async (from,to,transferAmt) => {
      try{
          const connection=new web3.Connection(web3.clusterApiUrl("devnet"),"confirmed");
          const transaction=new web3.Transaction().add(
              web3.SystemProgram.transfer({
                  fromPubkey:new web3.PublicKey(from.publicKey.toString()),
                  toPubkey:new web3.PublicKey(to.publicKey.toString()),
                  lamports:transferAmt*web3.LAMPORTS_PER_SOL
              })
          )
          const signature=await web3.sendAndConfirmTransaction(
              connection,
              transaction,
              [from]
          )
          return signature;
      }catch(err){
          console.log(err);
      }
  }
  
  exports.transferSOL = transferSOL;
  