Web3 sdk
Installation

Quick setup

Install xRaise Wallet connector package

npm i xraise-wagmi-connector

Add xRaise connector to your web3 library and request to connect automatically

const client = createClient({
  autoConnect: false,
  provider: zkSyncProvider,
  connectors: [defaultRaiseConnector],
});
 
export default function Layout({ children }: { children: React.ReactNode }) {
  useEffect(() => {
    client.autoConnect();
  }, []);
 
  return (
    <WagmiConfig client={client}>
        {children}
      <PluggedWallet />
    </WagmiConfig>
  );
}

When the setup is complete, user transactions will trigger xRaise wallet window open when transaction is requested