text: import { ThirdwebSDK } from "@3rdweb/sdk";
  import ethers from "ethers";
  
  import dotenv from "dotenv";
  dotenv.config();
  
  if (!process.env.PRIVATE_KEY || process.env.PRIVATE_KEY == "") {
    console.log("🛑 Private key not found.")
  }
  
  if (!process.env.ALCHEMY_API_URL || process.env.ALCHEMY_API_URL == "") {
    console.log("Alchemy API URL not found.")
  }
  
  if (!process.env.WALLET_ADDRESS || process.env.WALLET_ADDRESS == "") {
    console.log("🛑 Wallet Address not found.")
  }
  
  const sdk = new ThirdwebSDK(
    new ethers.Wallet(
      // private key
      process.env.PRIVATE_KEY,
      // rpc
      ethers.getDefaultProvider(process.env.ALCHEMY_API_URL),
    ),
  );
  
  (async () => {
    try {
      const apps = await sdk.getApps();
      console.log("Your app address is:", apps);
    } catch (err) {
      console.error("Failed to get apps from the sdk", err);
      process.exit(1);
    }
  })()
  
  // We are exporting the initialized thirdweb SDK so that we can use it in our other scripts
  export default sdk;