Jstz (pronounced: "justice") is a JavaScript runtime powered by Tezos Smart Optimistic Rollups that is built in Rust.
Install the Jstz command-line tool via NPM with this command:
npm i -g @jstz-dev/cliTo verify that Jstz installed correctly, run jstz --version.
You can build Jstz from source with Rust:
make build-deps
make buildSee installing Octez for installing the necessary dependencies for running Jstz.
# Create a smart function in a JavaScript file
echo "export default (() => new Response('hello world'))" > index.js
# Start the sandbox in detach mode
jstz sandbox --container start -d
# Deploy smart function
jstz deploy index.js --name example -n dev
# Send request to smart function
jstz run jstz://example/ -n devFor a more detailed quick start, see Quick start.
For the latest Jstz documentation, click here.
To build the documentation locally with Docusaurus, first do npm i, and then:
npm run docs:dev
to quickly see the results in your browser, or:
npm run docs:build
to build a production-grade website.
Please, check the CONTRIBUTING.md file to know how to effectively contribute to the project.
This project is licensed under the MIT license.