Cointegrity

Chaincode

Web3 / smart contracts

Chaincode is the term for smart contracts within the Hyperledger Fabric blockchain framework. It represents executable code that is deployed on the blockchain to automate business logic and enforce agreement terms between parties. Chaincode runs in isolated containers, ensuring security and separation from the core blockchain peer nodes. When invoked, chaincode reads from and writes to the ledger state, enabling complex conditional transactions and state changes. The modular design of Hyperledger Fabric allows organizations to deploy custom chaincode that reflects their specific operational requirements without modifying the underlying blockchain protocol. Example: The Linux Foundation's Hyperledger Fabric uses chaincode to power enterprise supply chain networks, such as those tracking pharmaceuticals from manufacture to retail, where chaincode validates product authenticity and authorization at each transfer point. Why it matters for smart contracts: Chaincode demonstrates that smart contract platforms need not be limited to single programming languages or immutable logic. Its permissioned, upgradeable model allows enterprises to refine business rules post-deployment while maintaining auditability and control.

Category: smart contracts, blockchain technology

Explore the full Web3 Glossary — 2,062+ expert-curated definitions. Need guidance? Talk to our consultants.