Quick start
This guide will instruct you in writing, deploying, and using your first Jstz smart function.
Prerequisites
-
Install Node.JS version 22 or later,
npm, and Docker. -
Install
pnpmversion v10 or later. -
Install Jstz as described in Installation.
To verify your installation, run this command to check the version of Jstz:
jstz --version -
Install the Google Chrome browser, which is the only browser supported by the Jstz development wallet.
It will also help to have a basic familiarity with Typescript.
What is Jstz?
Jstz allows you to deploy smart functions, which are JavaScript applications that behave like serverless applications, small applications that run only when called and do not have a persistent presence in memory on any specific server. Jstz smart functions run on the Tezos blockchain via Smart Rollup technology.
Running on Tezos provides smart functions with many of the same advantages as smart contracts on Tezos:
- Smart functions are persistent, transparent, and immutable, which allows users to trust that they will stay available and will not change how they behave or be shut down
- Smart functions are censorship-resistant, because they are deployed on distributed Jstz Smart Rollup nodes and therefore no one can block calls to them
- Smart functions have no long-term hosting cost; they incur a cost only when called
- Smart functions have built-in authentication via user account encryption keys
Also, because smart functions run on a Tezos Smart Rollup instead of directly on Tezos, they have the additional benefits of low gas cost and reduced latency that Tezos layer 2 provides.