TypeScript SDK
useSendAndConfirmTransaction
A hook to send a transaction and confirm the transaction with users's connected wallet
Gasless usage with thirdweb Engine
When the wallet does not have enough funds to send the transaction, a modal is shown to the user to buy the required funds and then continue with the transaction.
You can configure the pay modal by passing a SendTransactionPayModalConfig
object to the payModal
config.
By default, the pay modal is enabled. You can disable it by passing payModal: false
to the config.