TypeScript SDK
useSendTransaction
A hook to send a transaction with from the user's connected wallet.
You can send a transaction with a prepared contract call, a prepared transaction, or using a write Extension.
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.