React Native SIWE, Zora NFT support, airdrop extensions, and more
thirdweb SDK v5.35.0
![React Native SIWE, Zora NFT support, airdrop extensions, and more](/content/images/size/w2000/2024/07/Group-15.png)
SIWE (Auth) is now supported in the React Native
Auth allows any app to authenticate users on the backend through their wallets. With v5.35.0, we're bringing the same Auth capabilities from web to mobile. Use Auth in React Native just like you would in your React apps. Learn more about integrating Auth in the docs.
![](https://blog.thirdweb.com/content/images/2024/07/ConnectButton-Auth.png)
Retrieve a user's proof for an ERC20, ERC721, or ERC1155 airdrop claim
The Airdrop extension provides helper functions for getting claim conditions and claiming a token for a user, but there was previously no easy utility for determining if a user is eligible for a given drop. Now, you can use the fetchProofs
helpers (available on all token types) to get the claim proof for a user if that user is on the allowlist. If the user is not eligible to claim, fetchProofs
will return null
.
![](https://blog.thirdweb.com/content/images/2024/07/Fetch-ERC1155-Airdrop-Proof.png)
Specify a recipient address on the Pay Embed
The Pay Embed lets any app add a full-featured on-ramping and swapping UI in a single line of code. We're continuing to build on Pay's feature set by adding a recipientAddress
parameter. Apps can now allow users to on-ramp funds to one wallet, while signed in with another.
![](https://blog.thirdweb.com/content/images/2024/07/PayEmbed-Recipient-Address.png)
Zora NFT support on getOwnedNFTs
getOwnedNFTs
is one of the most used extensions in the thirdweb SDK. It fetches a user's owned NFTs for a specified contract by determining which methods the contract supports for efficient ownership retrieval. We're now adding support for Zora ERC1155 NFTs to the getOwnedNFTs function. Use the function just like before with any ERC1155 Zora NFT contract.
![](https://blog.thirdweb.com/content/images/2024/07/getOwnedNFTs-for-Zora.png)
Vietnamese Locale added to Connect UI
To continue supporting developers across the globe, we've added support for Vietnamese across our Connect UI components.
![](https://blog.thirdweb.com/content/images/2024/07/Vietnamese-Locale--2-.png)
Advanced UserOp Utilities
The thirdweb SDK is great for quick and easy Account Abstraction implementations, but sometimes you need to directly access UserOps and their inputs. We've added several utility functions to get the unsigned user op, overwrite the call gas limit, and directly sign a user operation.
![](https://blog.thirdweb.com/content/images/2024/07/Overwrite-Gas-Limit-for-a-UserOp--1-.png)
Bug Fixes
- Coinbase Wallet connection now properly supports universal links on iOS
- In-app wallet typed-data signatures now properly handle domains with no chain ID
- Connect UI network switcher now shows all search results for an active search query
useWalletBalance
hook type expects an explicit address and chain- Custom network button now closes the Connect UI modal
- Transaction reverts now properly return the revert error message