useSendCalls
A hook to send EIP-5792 calls to a wallet. This hook works with all Thirdweb wallets (in-app and smart) and certain injected wallets that already support EIP-5792. Transactions will be bundled and sponsored when those capabilities are supported, otherwise they will be sent as individual transactions.
When calls are sent, all contracts that are interacted with will have their corresponding reads revalidated via React Query.
This hook is dependent on the wallet's support for EIP-5792 and could fail. The mutatuon function will use your currently connected wallet by default, but you can pass it a specific wallet to use if you'd like.
Await the bundle's full confirmation:
Sponsor transactions with a paymaster:
We recommend proxying any paymaster calls via an API route you setup and control.