Skip to main content

CashScript

bitcoin-cash
development
smart-contract

A high-level language, compiler, and TypeScript SDK for building Bitcoin Cash UTXO contracts.

1
general

CashScript is an open-source high-level language for writing Bitcoin Cash smart contracts. Its compiler turns .cash source into contract artifacts and Bitcoin Cash VM bytecode, while its TypeScript SDK helps applications construct transactions that interact with those contracts.

2
model

CashScript syntax is influenced by Solidity, but its execution model is different. A contract controls one or more UTXOs, and each spend must satisfy the locking bytecode while explicitly consuming inputs and creating new outputs.

3
safety

A higher-level language can improve readability and tooling, but it does not remove protocol limits or automatically make a contract safe. Developers still need to review generated artifacts, transaction construction, covenant state transitions, dependency versions, and adversarial test cases.

CashScript documentation

Related terms

Explore connected entries beyond the alphabetical index.

All terms and definitions may update as the Cryptionary improves.