Composability in Web3: how contracts build on each other
Composability in Web3 means smart contracts can call each other and combine like Lego bricks, so apps reuse code and liquidity on one chain.

On this page
- A callable function is open to any contract unless the author restricts it.
- Composability links apps on one chain; interoperability links chains.
- A broken protocol can pull down every app in the same transaction.
The property belongs to the platform, not to any single app. It shapes what developers can build and what users can do in one step.
How does composability work?
Contracts on one chain fit together like Lego bricks. A new app can reuse code, liquidity and balances that already sit there instead of building them itself.
A contract can call another contract's public function inside one transaction. If a call fails and is not handled, the whole transaction reverts; some failures can be caught instead.
Where do people see composability?
DeFi is where composability shows up most. Separate protocols act as parts of one flow.
- A swap trades one token for another.
- A lending app takes a token as collateral.
- A yield strategy puts borrowed tokens to work.
- A wallet bundles the calls into one confirmation.
What are composability's risks and limits?
When apps depend on each other, a problem in one can reach the others. A bug or a drained pool can set off failures across the transaction. Liquidity can shift as well.
How is it different from interoperability?
Composability works on one chain, where a contract can call another directly. Interoperability connects separate blockchains.
Frequently asked questions
No. Any smart contract platform can expose callable functions, so gaming and art apps can be composable too.
Usually not directly. Cross-chain composability is limited and often relies on bridges, which add risk.
It can. Your app's safety then depends on code you did not write.
The developer decides which functions are callable; a public function is open to any contract unless access controls exist.






