Introducing the Social SDK
Greg
You can now query any address's on-chain social profiles using the new social
extension in the thirdweb SDK.
The query will return an array of SocialProfile
objects for each profile the address is associated with. This type has a standardized top-level interface of type
(farcaster
, lens
, and ens
are currently supported), name
, bio
, and avatar
. You can access protocol-specific user information such as the Farcaster FID under the metadata
field.
You can access the same query via the prebuilt React Query hook useSocialProfiles
.
⚠️
The SDK's new social features are still in beta, and may have breaking changes in the coming weeks.
Our ConnectButton
component in both React and React Native uses the social SDK to display a users profile rather than their wallet address when available.
- Modular Contract Support - Learn more
- Added test mode to Pay options on
ConnectButton
- Learn more - Added
getOwnedTokenIds
to ERC1155 extension - Learn more - Added options to hide Buy, Send, and Receive buttons in
useWalletDetailsModal
- Learn more - Fixed base URI extraction logic in contract extensions
- Fixed function ID retrieval for contract extensions
- Improved React Query caching performance