Quickstart
Learn how to add Connect SDK to your application, log in your users, and allow them to interact with your application.
The following guide is in Typescript. You can also learn how to integrate Connect with our Unity SDK.
Log in to the thirdweb dashboard. Navigate to the Settings page and create an API key to get your Client ID.
- Pass your clientId to
createThirdwebClient
- Wrap your application with a
ThirdwebProvider
- Add a
ConnectButton
to your application
- Pass your clientId to
Once your user has logged in by clicking the
ConnectButton
, you can interact with their wallet.Here's how to:
- Get the wallet address using
useActiveAccount
- Read the wallet balance using
useWalletBalance
- Get the wallet address using
Extensions are the easiest way to prepare transactions.
- Import the Extension you want to use
- Define your contract with
getContract
on your target chains - Call the
useSendTransaction
mutation hook - Execute the transaction using the mutate function
Congratulations, you've connected a wallet and sent a transaction from your application! You can now explore all the other accessible features in the full React documentation.