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.
Install the Connect SDK
Get Your Client ID
Log in to the thirdweb dashboard. Navigate to the Settings page and create an API key to get your Client ID.
Set up the Client, Provider and ConnectButton
- Pass your clientId to
createThirdwebClient
- Wrap your application with a
ThirdwebProvider
- Add a
ConnectButton
to your application
- Pass your clientId to
Interact With A Wallet
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
Send a Transaction
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
You're Ready to build
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.