0xBASIC
Version 1 in development

Smart contracts, with a BASIC beginning

Familiar syntax.
New possibilities.

0xBASIC is a programming language in development for writing smart contracts on the Chia blockchain. It pairs the clarity of structured BASIC with direct compilation to CLVM bytecode.

0xBASIC logo with circuit artwork

Readable by design

Inspired by Microsoft QuickBASIC 4.5, with named functions, typed variables, and structured control flow. No line numbers required. The aim is approachable code for curious newcomers and experienced developers alike.

Built for Chia

Familiar BASIC-style source compiles to a functional program for CLVM, Chia’s virtual machine. Explicit EMIT statements describe contract conditions, keeping the contract’s intent visible in the source.

Clarity beyond syntax

Static types, explicit conversions, and predictable evaluation are central to the design. The goal is to make contract behavior easier to understand, check, and test.

A working foundation. More to come.

The experimental compiler and command-line tools compile and run a growing language subset locally, with testing on Windows and Linux. Supported features include functions, branching, counted loops, byte operations, and SHA-256 hashing. Signed payment examples are tested in isolated Chia simulators.

Explore the source code, examples, and documentation in the 0xBASIC GitHub repository. Visit GitHub Releases for experimental downloads, or follow the compiler walkthrough to build and run a program.

Version 1 is still being built. The compiler is experimental and has not been audited for production use. Do not use this development version to secure funds.

This site will grow alongside the language. For questions or interest in the project, email info@0xbasic.com.