CashScript (@CashScriptBCH) header
CashScript (@CashScriptBCH) profile picture

CashScript is a high-level programming language for smart contracts on Bitcoin Cash. Maintained by @RoscoKalis and @GeukensMathieu

Joined December 2022
the CashScript Flipstarter for '26-27 got fully funded 🎉 A big thank you to everyone who contributed and shared the campaign!! We're very grateful we can keep working on CashScript and are committed to make it the best it can be!
1
9
4
26
1,212
Less than 24 hours left on the CashScript Flipstarter. 343 of 420 BCH pledged by 13 contributors. This year we shipped full support for the 2026 upgrade: loops, functions, and more. Next: structs, typesafe inline assembly and formal verification. flipstarter.cashscript.org
1
10
19
434
Thank you to all 11 pledgers for the financial support to the Flipstarter fundraiser! We're now at 81% towards the campaign goal with 3 days remaining! 💪
1
3
9
201
Our increased time commitment in the past year has allowed us to ship some huge improvements! There is just 1 week remaining on our Flipstarter for another year of active development, and we rely on the community's support to continue that trend. 🙏
1
3
11
228
The CashScript Flipstarter for 2026-27 is live! Last year we shipped loops and functions for the 2026 upgrade. Next up: 🧱 Structs ⚙️ Typesafe inline assembly ✅ Formal verification Help fund another year of BCH smart contract tooling 👇 flipstarter.cashscript.org/e…
2
14
2
31
1,662
These are just the highlights, but there's much more in this release, including new optimisations, faster compilation for large contracts and the new 'unused' modifier. For the full list of changes, please refer to the release notes 👇 cashscript.org/docs/releases…
1
4
29
4/ Debugging with stack traces Our debugging tools fully support user-defined functions. When a require fails inside a function, you get the exact file and line that failed, plus a stack trace of the calls that led there.
1
5
47
3/ Imports Functions and constants can now live in separate files and be imported, even from npm packages. This opens the door to shared CashScript libraries. Here's the contract from 1/ with its helpers moved into a library file. It compiles to the exact same bytecode.
1
2
2
11
533
2/ Global constants No more magic numbers or extra constructor arguments for fixed values. Declare constants at the top level of your file, with arithmetic and concatenation evaluated at compile time.
1
6
51
1/ Reusable functions We teased them last release, and here they are! Define functions at the top level of your file, with one, multiple or no return values. The compiler uses BCH's native OP_DEFINE/OP_INVOKE from the Layla upgrade, or inlines them when that's smaller.
1
3
14
153
CashScript v0.14.0 was just released! What's new? 🧩 Reusable functions 📌 Global constants 📚 Imports & shareable libraries 🐞 Stack traces when debugging 🛡️ Safer transaction testing
2
16
3
35
1,223
We just upgraded the developer experience for all CashScript developers, whether you prefer the playground or a code editor. The playground and VS Code extension now feature full compilation results and show you any compile errors immediately. 🫡🚀
3
6
2
19
1,550
We've just released a big new update to the CashScript Playground! It now supports v0.13 as well as 0.12 with a compiler selector, and it features full highlighting, autocomplete and hover hints. 🥳
2
4
1
12
1,127
4/ Change utilities When we moved to the new transaction builder in 2025, we removed some "magic" to give control to our users. But by doing so, some convenience was lost. With these new utilities, we are restoring that convenience while keeping control in our users' hands.
1
4
56
2/ Bitwise shifts & P2S The Layla upgrade has also brought support for bitwise/arithmetic shifts and has brought P2S into standardness. We've added >> and << operators to support shifts, and added a 'p2s' contract type to the SDK to support this.
1
6
80