{"id":27381,"library":"scryptc","title":"sCrypt Compiler","description":"Command-line compiler for sCrypt, a high-level smart contract language targeting Bitcoin SV. The latest version is 0.2.9. Development is active with periodic releases. Key differentiator: it compiles to Bitcoin Script, enabling on-chain smart contracts with a C-style syntax. No major alternatives exist for Bitcoin SV smart contracts.","status":"active","version":"0.2.9","language":"javascript","source_language":"en","source_url":"https://github.com/scrypt-sv/specification","tags":["javascript","Bitcoin","Bitcoin SV","Smart Contract"],"install":[{"cmd":"npm install scryptc","lang":"bash","label":"npm"},{"cmd":"yarn add scryptc","lang":"bash","label":"yarn"},{"cmd":"pnpm add scryptc","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM default import; CommonJS require may not work due to missing default export.","wrong":"const scryptc = require('scryptc')","symbol":"default","correct":"import scryptc from 'scryptc'"}],"quickstart":{"code":"npm install -g scryptc\n# Create a contract file (e.g., hello.scrypt) with:\ncontract hello {\n    public function greet(bytes msg) {\n        require(Tx.checkPreimage(msg));\n    }\n}\n# Compile\nscryptc hello.scrypt\n","lang":"javascript","description":"Shows global install and basic compilation of an sCrypt contract file."},"warnings":[{"fix":"npm install -g scryptc","message":"Global install (-g) is required to use the scryptc CLI command; local install may not expose the binary.","severity":"gotcha","affected_versions":">=0.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run `npm install -g scryptc` to install globally.","cause":"Package not installed or installed locally without -g.","error":"Error: Cannot find module 'scryptc'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}