How to get the signer for connected wallet
In the guide below, we will explore how to obtain the signer for the connect wallet using the new Thirdweb v5 SDK.
import { ConnectButton, useActiveAccount } from "thirdweb/react"; import { createThirdwebClient } from "thirdweb"; function Home() { const client = createThirdwebClient({ clientId: "" }); const activeAccount = useActiveAccount(); return ( <> <ConnectButton client={client} /> </> ) } export default Home;
That’s it, it is that simple to get the signer in the new thirdweb SDK
Can’t get this working? If you’ve followed the above and still have issues, contact our support team for help.
Did this answer your question?
😞
😐
🤩