Here's a guide on how to install and get started with Versatus using Node.js:

Installation

  1. Create a new TypeScript project:
mkdir versatus-project
cd versatus-project
npm init -y
npm install typescript --save-dev
npx tsc --init

  1. Install the Versatus JavaScript SDK:
npm install @versatus/versatus-javascript

  1. Initialize the project using lasrctl:
npx lasrctl init hello-lasr

Building and Testing

  1. Build your program:
npx lasrctl build example-program.ts

  1. Test your program:
npx lasrctl test --build example-program --inputJson example-program-inputs

Deployment

To create an account and deploy your program:

npx lasrctl deploy --build example-program --symbol MYTOKEN --programName "My first token on LASR"

Note: If the deployment fails on the first attempt, try running the command again.

Interacting with LASR Online

  1. Complete the steps above.