Compact.js
Compact.js provides a TypeScript-based execution environment for smart contracts compiled with the Compact compiler. When a Compact smart contract is compiled, the output includes a JavaScript file and a TypeScript declaration file.
Compact.js uses these files at runtime to execute the circuits. The circuit execution results are then used by higher-level tools and frameworks (such as Midnight.js) to create and submit transactions to the Midnight blockchain.
For more information, see the Compact language documentation.
Release 2.4.0LATEST
28 January 2026
Artifacts
Summary
- Provides a Typescript-based execution environment for smart contracts compiled with the Compact language.
- Used internally by Midnight.js and the Node Toolkit.