Definition ∞ On-chain messaging involves embedding textual or data messages directly onto a blockchain as part of a transaction. These messages are immutable, publicly verifiable, and subject to the network’s transaction fees and block space limitations. Unlike off-chain communication, on-chain messages benefit from the security and permanence guarantees of the underlying distributed ledger. This method is used for various purposes, including verifiable announcements or data stamping.
Context ∞ The use of on-chain messaging sparks discussions regarding its efficiency, cost, and potential for spam or misuse due to its permanent and public nature. While offering high integrity, its scalability is limited by blockchain throughput. Future developments explore more efficient data compression techniques and layer-2 solutions to make on-chain communication more practical for broader application without congesting the main network.