Deploy Smart Contracts
To deploy a smart contract, simply send a HAH transaction containing the compiled smart contract code without specifying any recipients
Prerequisites
Before deploying smart contracts, you need to understand the HAH network, transactions and detailed smart contracts.
Deploying a contract also costs HAH, so you should be familiar with HAH gas and fees.
Finally, you need to compile your contract before deploying, so make sure you've read Compiling Smart Contracts.
How to deploy smart contracts
First you need to do:
Your contract bytecode - this is obtained through compilation.
HAH for gas - like any other transaction, you need to set a gas limit so you know that deploying a contract requires more gas than a simple HAH transaction.
A deployment script or plugin.
Access HAH nodes, connect to public nodes by running your own node, or use node services through API keys.
Steps to deploy a smart contract
The exact steps involved will depend on the tool you use.
Once deployed, your contract will have a HAH address, just like any other account.
Last updated