PTE Scrypto Terminal

The terminal client allows you to simulate the experience of working on the Radix network. You can publish blueprints for others to use, execute batched commands via a manifest, and engage in transactions with other users on the network. If you’re familiar with the commands available to you with the resim utility.

You don’t need to install any toolchains to make this work. All you need to do is the following:

  1. Download and unpack the binary file to your computer from the following link

  2. Open a command-line window pointing to the directory where you unpacked the binary file

  3. Run resim-client --address <PTE-address> (see bellow for addresses)

You’ll now have a command window from which you can run resim commands on the server

Table 1. PTE addresses

PTE01

pte01-socket.radixdlt.com:8010

PTE02

pte02-socket.radixdlt.com:8010

Publishing a package

To publish your Scrypto package to the PTE using the client, you first need to build it using the scrypto build command and then reference the generated WASM file when calling resim publish on the client.

Lets go through an example…​

  1. Create a new Scrypto package:

    scrypto new-package helloworld
  2. Enter the package directory:

    cd helloworld
  3. Build the project:

    scrypto build

    This generates the WASM file at helloworld/target/wasm32-unknown-unknown/release/helloworld.wasm

  4. Connect to the PTE:

    resim-client --address pte02-socket.radixdlt.com:8010
  5. Publish the package with:

    resim publish ./target/wasm32-unknown-unknown/release/helloworld.wasm

You should get the following output:

File name: Some("helloworld.wasm")
File size: 169494
Bytes read from file: 169494
Bytes written to stream: 169499
Sent command, awaiting reply...
Reading reply...
Success! New Package: <Package Address>