useDeployer & useDeployerTx
Last updated
Was this helpful?
Last updated
Was this helpful?
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 a ContractDeployer
instance using its unique ContractId from registered contract deployments.
useDeployerTx
: Works like useContractTx
, 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! 🚀
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!