Skip to main content

Running a Node

In the following section, you can find information on how to use Wasp by cloning the repository and building the application. The instructions below will build both the Wasp node and the Wasp CLI to interact with the node from the command line.

If you just want to run a Wasp node, you can also use the Wasp standalone Docker image or a pre-configured local Wasp and GoShimmer node setup using Docker Compose.



  • Cores: At least 2 cores (most modern processors will suffice)
  • RAM: 4GB



GoShimmer is a developing prototype, so some things are prone to break. For a smooth development experience, you should use the GoShimmer code at this commit.


The Wasp node requires the Goshimmer node to have the TXStream plugin enabled. Being an experimental plugin, it is currently disabled by default and can be enabled via configuration.

Download Wasp

You can get the source code of the latest Wasp version from the official repository.

git clone


You can build and install both wasp and wasp-cli by running the following commands.


By default this will place the applications in $HOME/go/bin on Linux and Mac and %USERPROFILE%/go/bin on Windows. On Windows the Go installation should add this path automatically to your PATH environment variable. On Linux and Mac you can add this location to your PATH by adding the following line to your $HOME/.profile:

export PATH=$PATH:$(go env GOPATH)/bin

Changes made to a profile file may not apply until the next time you log into your computer. To apply the changes immediately, just run the shell commands directly or execute them from the profile using a command such as source $HOME/.profile.


As an alternative you could run make build instead of make install, this would only build the applications and leave them in the repository directory.


make install

macOS arm64 (M1 Apple Silicon)

wasmtime-go hasn't supported macOS on arm64 yet, so you should build your own wasmtime library. You can follow the README in wasmtime-go to build the library. Once a wasmtime library is built, then you can run the following commands.

go mod edit<wasmtime-go path>
make install

Microsoft Windows

make install-windows

Microsoft Windows Installation Errors

If the make install-windows command tells you it cannot find gcc you will need to install MinGW-w64.Make sure to select x86_64 architecture instead of the preselected i686 architecture during the installation process. After the installation make sure to add the following folder to your PATH variable:

C:\Program Files\mingw-w64\x86_64-8.1.0-posix-seh-rt_v6-rev0\mingw64\bin


Run All Tests

You can run integration and unit test together with the following command:

go test -tags rocksdb,builtin_static -timeout 20m ./...

Keep in mind that this process may take several minutes.

Run Unit Tests

You can run the unit tests without running integration tests with the following command:

go test -tags rocksdb,builtin_static -short ./...

This will take significantly less time than running all tests.


You can configure your node/s using the config.json configuration file. If you plan to run several nodes in the same host, you will need to adjust the port configuration.


Wasp nodes connect to other Wasp peers to form committees. There is exactly one TCP connection between two Wasp nodes participating in the same committee. Each node uses the peering.port setting to specify the port that will be used for peering.

peering.netid must have the form host:port, with a port value equal to peering.port, and where host must resolve to the machine where the node is running and be reachable by other nodes in the committee. Each node in a committee must have a unique netid.

Goshimmer Connection Settings

nodeconn.address specifies the Goshimmer host and port (exposed by the TXStream plugin) to connect to. You can find more information about the Goshimmer node in the Goshimmer Provider section.


nanomsg.port specifies the port for the Nanomsg event publisher. Wasp nodes publish important events happening in smart contracts, such as state transitions, incoming and processed requests, and similar. Any Nanomsg client can subscribe to these messages.

More Information on Wasp and Nanomsg
Each Wasp node publishes important events via a [Nanomsg]( message stream (just like ZMQ is used in IRI). Possibly, in the future, [ZMQ]( and [MQTT]( publishers will be supported too.

Any Nanomsg client can subscribe to the message stream. In Go, you can use the packages/subscribe package provided in Wasp for this.

The Publisher port can be configured in config.json with the nanomsg.port setting.

The Message format is simply a string consisting of a space-separated list of tokens, and the first token is the message type. Below is a list of all message types published by Wasp (you can search for publisher.Publish in the code to see the exact places where each message is published).

Chain record has been saved in the registrychainrec <chain ID> <color>
Chain committee has been activatedactive_committee <chain ID>
Chain committee dismisseddismissed_committee <chain ID>
A new SC request reached the noderequest_in <chain ID> <request tx ID> <request block index>
SC request has been processed (i.e. corresponding state update was confirmed)request_out <chain ID> <request tx ID> <request block index> <state index> <seq number in the block> <block size>
State transition (new state has been committed to DB)state <chain ID> <state index> <block size> <state tx ID> <state hash> <timestamp>
Event generated by a SCvmmsg <chain ID> <contract hname> ...


webapi.bindAddress specifies the bind address/port for the Web API, used by wasp-cli and other clients to interact with the Wasp node.


dashboard.bindAddress specifies the bind address/port for the node dashboard, which can be accessed with a web browser.


prometheus.bindAddress specifies the bind address/port for the prometheus server, where it's possible to get multiple system metrics.

By default, Prometheus is disabled and should be enabled by setting prometheus.enabled to true.


Grafana provides a dashboard to visualize system metrics. It can use the prometheus metrics as a data source.

Goshimmer Provider

For the Wasp node to communicate with the L1 (Tangle/Goshimmer Network), it needs access to a Goshimmer node with the TXStream plugin enabled. You can use any publicly available node, or set up your own node.


By default, the TXStream plugin will be listening for Wasp connections on port 5000.

Default Configuration Changes

If you are using the default GoShimmer docker image you will need to edit your GoShimmer docker-compose.yml file to include the following settings.

Add the TXStream plugin port

# TXStream plugin
- ""

Enable TXStream and Faucet Plugins


Running the Node

After you have tweaked config.json to your liking, you can start a Wasp node by executing wasp in the same directory as shown in the following snippet.

mkdir wasp-node
cp config.json wasp-node
cd wasp-node
#<edit config.json as desired>

You can verify that your node is running by opening the dashboard with a web browser at (default url).

Repeat this process to launch as many nodes as you want for your committee.

Accessing Your Node From a Remote Machine

If you want to access the Wasp node from outside its local network, you will need to add your public IP to the webpi.adminWhitelist. You can do so by adding it to your config file, or running the node with the webapi.adminWhitelist flag.

wasp --webapi.adminWhitelist=,YOUR_IP

Video Tutorial