Skip to content
This repository has been archived by the owner on Oct 9, 2023. It is now read-only.

Latest commit

 

History

History
80 lines (50 loc) · 1.69 KB

README.md

File metadata and controls

80 lines (50 loc) · 1.69 KB

Moonbeam Truffle Plugin

This is meant to be used with the Moonbeam Truffle box: https://github.com/PureStake/moonbeam-truffle-box.git

You can run any of the commands below from within the Moonbeam Truffle Box repo.

The plugin is used to get you started with a local development Moonbeam node quickly. You can check all available commands with the help flag:

./node_modules/.bin/truffle run moonbeam help

The following commands are available:

Install

In this context, installing means downloading the Docker image of the Moonbeam development node (requires Docker to be installed).

node_modules/.bin/truffle run moonbeam install

Start

Start the development Moonbeam node.

node_modules/.bin/truffle run moonbeam start

The start command comes with custom options:

  • --ws-port: For setting a custom unified HTTP and WS port. Accepts a port number to the right of the command.
node_modules/.bin/truffle run moonbeam start --ws-port 8545

Stop

Stop the development Moonbeam node. This will remove the container, thus purging the chain.

node_modules/.bin/truffle run moonbeam stop

Pause

Pause the development Moonbeam node.

node_modules/.bin/truffle run moonbeam pause

Unpause

Unpause the development Moonbeam node.

node_modules/.bin/truffle run moonbeam unpause

Status

Shows the status of the development Moonbeam node.

node_modules/.bin/truffle run moonbeam status

Remove

Removes the Docker image of the Moonbeam development node.

node_modules/.bin/truffle run moonbeam remove

Contact Us

We welcome any feedback, so feel free to reach out through our official Discord Channel.