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

mvc-cli-dev

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mvc-cli-dev

## Description

  • 0.1.6
  • npm
  • Socket score

Version published
Weekly downloads
1
Maintainers
1
Weekly downloads
 
Created
Source

mvc-cli

Description

This is a simple CLI tool to operate MVC cli wallet.

Installation

yarn add @mvc-org/mvc-cli

Usage

Config your account

Open terminal, at your current working directory, run mvc-cli init and answer the next series of questions, this will generate account.json file at your current working directory.

// account.json file
MEMONIC="abc edf"
ACCOUNTPATH="m/44'/10001'/0'/0/0"
NETWORK=mainnet

Usage

mvc-cli [command] [options]

Options:

  • -h, --help display help for command
  • -tk, --tokens <tokens...> You can choose what tokens you want to check(Note1:token name should tranform to lowercase, Note2: this option is for getbalance command)

Commands

commanddescription
send <address> <amount>
for space transferring
getbalance [options]for getting space and token balance of your account
ft-transfer <token> <address> <amount>for transferring your fungible token to target address
ft-registerfor registering a fungible token, just answer the following series of questions.

Example

to get help text for a specific command
mvc-cli send --help
transfer 0.01 space to target address
mvc-cli send 12ecgYPjeZh3mv6izoVuBSaa1Dxxwv2J1G 0.01
transfer 0.88 MSP ft token to target address
mvc-cli ft-transfer msp 12ecgYPjeZh3mv6izoVuBSaa1Dxxwv2J1G 0.88
// or
mvc-cli ft-transfer b2d75931958114e48c9927160f80363eae78e2dc 12ecgYPjeZh3mv6izoVuBSaa1Dxxwv2J1G 0.88
// b2d.... is token MSP's genesis code

register new fungible tokens

Open terminal, At your current working directory, run mvc-cli ft-register and answer the next series of questions, this will generate tokenRegister.json file at your current working directory.

// tokenRegister.json
[
  {
    "name": "msp",
    "genesis": "b2d75931958114e48c9927160f80363eae78e2dc",
    "decimal": "1e8",
    "codehash": "a2421f1e90c6048c36745edd44fad682e8644693"
  },
]

Dependencies

  • NestJS
  • NestJS Commander

FAQs

Package last updated on 17 Nov 2023

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