useDeployer & useDeployerTx
useDeployer
and useDeployerTx
are handy hooks for deploying smart contracts and managing transaction progress, just like useContract
and useContractTx
.
useDeployer
: Helps you create and manage aContractDeployer
instance using its unique ContractId from registered contract deployments.useDeployerTx
: Works likeuseContractTx
, letting you sign and send transactions to deploy a smart contract while keeping track of the progress.
These hooks make contract deployment smooth and hassle-free! 🚀
Don’t forget to use the built-in txToaster to display notifications about the transaction’s progress, so users stay informed in real-time! 🚀
UI Feedback During Transaction Processing
Just like useContractTx
for sending transactions, useDeployerTx
also provides helpful boolean states to update your UI during the deployment process. This makes it easy to show loading states, disable buttons, or display progress updates while the transaction is in progress!
Last updated
Was this helpful?