Giter VIP home page Giter VIP logo

cli-wallet's Introduction

Spacemesh CLI Wallet

Overview

A basic reference Spacemesh Wallet designed to work together with a go-spacemesh full node. The wallet is designed to run from the command line.

The wallet is designed for developers who want to hack on the Spacemesh platform. For non-devs we recommend using Smapp

  • the Spacemesh App. Smapp is available for all major desktop platforms and includes a wallet.

Functionality

The wallet is a Spacemesh API client and implements basic wallet features via a REPL interface. You can create a new coin account, execute transactions, check account balance and view transactions.

The wallet has been upgraded to use Spacemesh standard wallets (encrypted)

See below on how to use with any network.

Building

Build for your current platform with go:

go get && go build

Build for all platforms:

make

Build for a specific platforms:

make build-win
make build-mac
make build-linux

With docker:

make dockerbuild-go

Wallet Directives

Use -wallet_directory to override the default of current working directory when opening and creating wallets.

Use -wallet to specify a wallet to pre-open when starting cli-wallet. cli-wallet will look in current directory unless -wallet_directory has been specified.

Using a public Spacemesh API server

You can use your wallet without running a full node by connecting it to a public Spacemesh api service for a Spacemesh network. Use the -grpc-server and -secure flags connect to a remote Spacemesh api server. For example:

./cli_wallet_darwin_amd64 -server api-123.spacemesh.io:443 -secure

Note that communications with the server will be secure using https/tls but the wallet doesn't currently verify the server identity.

Using with a local Spacemesh full node

  1. Join a Spacemesh network by running go-spacemesh or Smapp on your computer.
  2. Build the wallet from this repository and run it. For example on OS X:
make build-mac
./cli_wallet_darwin_amd64

By default, the wallet attempts to connect to the api server provided by your locally running Spacemesh full node using the default node's grpc api port (localhost:9092). When you run your full node directly in terminal, you can configure which api services will be available to your wallet by your node by changing entries int he api section of your node's config file:

{
   "api" : {
      "grpc": "node, mesh, globalstate, transaction, smesher"
   }
}

cli-wallet's People

Contributors

avive avatar daveappleton avatar 0xupsetter avatar moshababo avatar antonlerner avatar noamnelke avatar sudachen avatar y0sher avatar 0xgfgc avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.