Skip to content

thirdweb@5.27.0

Compare
Choose a tag to compare
@jnsdls jnsdls released this 01 Jun 04:28
· 6046 commits to main since this release
4cddbe7

Minor Changes

  • #3181 a346111 Thanks @gregfromstl! - Adds headless functions for creating and managing a WalletConnect session with a connected wallet

    createWalletConnectClient

    import { createWalletConnectClient } from "thirdweb/wallets/wallet-connect";
    
    createWalletConnectClient({
      client: client,
      wallet: wallet,
      onConnect: (session: any) => {
        alert("Connected");
      },
      onDisconnect: (session: any) => {
        alert("Disconnected");
      },
    });

    createWalletConnectSession

    import { createWalletConnectSession } from "thirdweb/wallets/wallet-connect";
    
    createWalletConnectSession({
      walletConnectClient: wcClient,
      uri: "wc:...",
    });

    getWalletConnectSessions

    import {
      getWalletConnectSession,
      type WalletConnectSession,
    } from "thirdweb/wallets/wallet-connect";
    
    const sessions: WalletConnectSession[] = await getWalletConnectSessions();

    disconnectWalletConnectClient

    import { disconnectWalletConnectClient } from "thirdweb/wallets/wallet-connect";
    
    disconnectWalletConnectClient({ session, walletConnectClient: wcClient });
  • #3105 51e7ada Thanks @joaquim-verges! - First party support for zkSync native account abstraction

    You can now use smart accounts on zkSync and zkSync sepolia without any extra setup.

    const wallet = smartWallet({
      chain: zkSync,
      sponsorGas: true,
    });
    
    const smartAccount = await wallet.connect({
      client,
      personalAccount,
    });
    
    // now your can perform transactions normally, gas will be sponsored
    sendTransaction({ transaction, account: smartAccount });
  • #3105 51e7ada Thanks @joaquim-verges! - ZkSync transaction support

Patch Changes