On-chain message
is typically implemented using metadata transactions. Metadata can be attached to regular ADA transactions or other transactions on the Cardano blockchain. These metadata transactions can contain various types of information, including text, JSON data, or links to external content.
On-chain messages are useful for Non-Fungible Tokens. Creators can use them to store metadata about NFTs, such as the title, description, and provenance of the digital asset.