Smart Contract Deployment
Last updated
Last updated
You need to deploy your smart contract for it to be available to users of an U2U network.
To deploy a smart contract, you merely send a transaction containing the compiled code of the smart contract without specifying any recipient.
your contract's bytecode – this is generated through compilation
U2U for gas – you'll set your gas limit like other transactions so be aware that contract deployment needs a lot more gas than a simple U2U transfer
a deployment script or plugin
access to an U2U node, either by running your own, connecting to a public node.
The specific steps involved will depend on the tooling you use. For an example, Remix and Hardhat. They are the most popular tools for smart contract deployment, which involve writing a script to handle the deployment steps.
Once deployed, your contract will have an address like other accounts.
Remix - Remix IDE allows developing, deploying and administering smart contracts for Ethereum like blockchains
Hardhat - A development environment to compile, deploy, test, and debug your Ethereum software