π¨ββοΈ jstz
Jstz
(pronounced: βjusticeβ) is a JavaScript runtime powered by Tezos Smart Optimistic Rollups that uses Boa and is built in Rust.
Installation
Install the Jstz command-line tool via NPM with this command:
npm i -g @jstz-dev/cli
To verify that Jstz installed correctly, run jstz --version
.
Building from source
You can build Jstz from source with Rust:
make build-deps
make build
See installing Octez for installing the necessary dependencies for running jstz
.
Quick Start
# Make a javascript file
echo "export default (() => new Response('hello world'))" > index.js
# Start the sandbox (as a daemon)
jstz sandbox start -d
# Deploy smart function
jstz deploy index.js --name example
# Send request to smart function
jstz run jstz://example/
For a more detailed quick start, see Quick start.
Documentation
For the latest jstz
documentation, click here.
Contributing
Please, check the CONTRIBUTING.md file to know how to effectively contribute to the project.
License
This project is licensed under the MIT license.