Cointegrity

Message call

Web3 / smart contracts

A message call is an internal transaction-like operation within the Ethereum Virtual Machine where one smart contract invokes a function in another smart contract by sending a message that includes the target address, function signature, and parameters. Unlike external transactions initiated by users, message calls execute within a single transaction context and inherit certain properties like the caller's identity and remaining gas. They can be performed using low-level operations like CALL, STATICCALL, or DELEGATECALL, each with different semantics regarding state changes and execution context. Message calls enable composable smart contract systems where protocols can interact, but they also introduce security risks if callers do not properly validate recipient contracts. Example: A decentralized exchange like Uniswap uses message calls to invoke ERC-20 token transfer functions on token contracts when swapping assets, allowing the exchange to move tokens on behalf of users within a single atomic transaction. Why it matters for smart contracts: Message calls enable contract composability and complex multi-contract interactions, but require careful security auditing to prevent reentrancy attacks and ensure proper access control between contracts.

Category: smart contracts, blockchain technology

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