NexScript Playground: A Step Ahead

We are pleased to announce that the NexScript Playground has been upgraded with major improvements. A step debugger has been added to help developers get started with coding advanced transactions and the playground also moves to NexScript 2.0.0, and comes with a new Nexa look. The playground is connected to the network, and you can write, test, and interact with the contracts straight from the website.

For developers, there is a change worth your attention. The default compiler is now 2.0.0. The editor has a version selector if needed; however, the playground scans the pragma line in your contract and picks a compatible compiler for you.

Try it now:
https://playground.nexscript.org

What’s NexScript Playground

NexScript playground is designed to write, test, and interact with the Nexa smart contracts. For developers familiar with smart contracting languages other than NexScript, such as Solidity, the playground can be compared to the Remix tool, designed to help easily interact with contracts on the Nexa blockchain.

What’s New

In plain words, the debugger runs a compiled contract one instruction at a time, so every step of a spend can be followed on the screen.

Some of the most significant updates include:

  • Adds the interactive script step-debugger and wires it into the contract view and transaction builder. The consensus-exact interpreter is consumed as the Nexscript Interpreter package.

  • Moves the playground to nexscript 2.0.0 and libnexa-ts ^4.0.0. Nothing in the app needed changing for v4, compiling, wallets, creating contracts and the builder all work.

  • Restyles the playground to the Nexa brand (nexa.org colourway, Inter/JetBrains Mono).

  • Token UTXOs are now listed, with their group and amount.

  • The UTXO table column is renamed from “TxID” to “Outpoint”.

  • ^ and ~ are now matched the way nexc’s semver check matches them.

  • The status line shows the whole requirement, written the way nexc prints it, for example >=1.0.0 <2.0.0.

Altogether, these updates are making the playground a very useful tool for every smart contract developer.

To Wrap Up

With NexScript, developers can write smart contracts on Nexa, and with the upgraded playground, interacting with them is much easier and more convenient. There are more updates planned for it, and the team is currently working on them.

Appreciation for all this hard work goes to the Nexa developers Dolaned and Sickpig, who are actively working on the playground improvements.

​

Learn NexScript

Community Groups