Blockchain & Cryptocurrency Glossary

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.

  • search-icon Clear Definitions
  • search-icon Practical
  • search-icon Technical
  • search-icon Related Terms

Deployment

1 min read
Pronunciation
[dee-ploy-muhnt]
Analogy
Deployment is like installing an app on your phone—it uploads code and registers it for use.
Definition
The process of publishing compiled smart contract bytecode and ABI to a blockchain network, making it available for interaction.
Key Points Intro
Deployment involves these steps:
Key Points

Bytecode upload: Send contract creation transaction.

Constructor execution: Init code runs to set initial state.

Address assignment: Deterministic or CREATE2‑based address.

ABI registration: Front‑ends use ABI to interact post‑deployment.

Example
Using Hardhat, a developer runs `npx hardhat run scripts/deploy.js --network mainnet` to deploy their contract and output its address and ABI.
Technical Deep Dive
The creation transaction’s to field is empty, data field contains init bytecode. Miners execute init code, return runtime bytecode which is stored at the new contract address. CREATE2 uses salt and deployer address to compute address pre‑deployment.
Security Warning
Ensure constructor logic is secure; bugs here can set malicious initial state.
Caveat
Gas cost for large contracts can exceed block gas limit; optimize or split contracts.

Deployment - Related Articles

No related articles for this term.