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:
-
Download and unpack the binary file to your computer from the following link
-
Open a command-line window pointing to the directory where you unpacked the binary file
-
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
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…
-
Create a new Scrypto package:
scrypto new-package helloworld
-
Enter the package directory:
cd helloworld
-
Build the project:
scrypto build
This generates the WASM file at
helloworld/target/wasm32-unknown-unknown/release/helloworld.wasm
-
Connect to the PTE:
resim-client --address pte02-socket.radixdlt.com:8010
-
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>