WebAssembly (WASM) is a compact binary instruction format designed to run programs safely and at close to native speed inside web browsers. Code written in languages such as C, C++ or Rust is compiled to WebAssembly and executed in a sandbox alongside JavaScript. It was developed jointly by the major browser makers and became an official World Wide Web Consortium (W3C) recommendation in 2019. It is also used outside browsers, on servers and in edge computing.
Its speed, portability and deterministic behaviour have made WASM a popular base for blockchain virtual machines. CosmWasm brings WASM smart contracts to chains built with the Cosmos SDK, Polkadot uses it for its runtime logic, and NEAR Protocol runs contracts compiled to it. These environments let developers use general-purpose languages rather than chain-specific ones such as Solidity.
Ref 1300000372