Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

spacemesh-local-testnet

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

spacemesh-local-testnet

CLI tool to start a spacemesh network locally

  • 1.1.2
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

README

A programmable Cryptocurrency

https://spacemesh.io/content/images/2019/05/black_logo_hp.png

Spacemesh Local Testnet (Localnet)

This repo contains the CLI for running a 10 node Spacemesh testnet locally on one computer. To learn more about the Spacemesh cryptocurrency visit https://spacemesh.io .

Prerequisites

  • OS X or Linux or Windows
  • Docker
  • NPM
  • Docker Compose

Installing CLI

The local testnet is 100% built from open source code from the Spacemesh github repos, and doesn’t use any prepackaged pre-built binaries.

Install the CLI locally using the following command

npm install -g spacemesh-local-testnet

Running

To create a local network run the below command:

spacemesh-local-testnet create

And to delete the network run the below command:

spacemesh-local-testnet delete

You can enter spacemesh-local-testnet --help to see the available options.

Create Network using Local Go Spacemesh Build

To create a network using go-spacemesh local code, first run the below command in go-spacemesh directory:

docker build -t spacemesh:local .

Then run the following command to use the image build above:

spacemesh-local-testnet create --go-sm-image=spacemesh:local

Executing Transactions using CLI Wallet

Using CLI wallet you can import cli-wallet.json file and use the account to create token transfer transactions. The account is pre-filled in the genesis configuration.

Update NPM (Devs Only)

Run the following command locally to publish new version to npm

npm run build
cd dist && npm publish

FAQs

Package last updated on 09 Feb 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc