New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aelf-command

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aelf-command

A CLI tools for AElf

0.1.0
Source
npm
Version published
Maintainers
1
Created
Source

aelf-command

此仓库为aelf-command,用于命令行使用sdk,待规划

安装

项目本地安装

# 项目路径下本地安装
npm i aelf-command --save

使用

可在Node.js REPL中或者js文件中使用

// 安装完成后
const keyStoreFunctions = require('aelf-command');
// 生成一个新的钱包和对应的keyStore,keyStore并写入文件,文件名为<{生成的钱包地址}_keyStore.json>
const result = keyStoreFunctions.generateKeyStore('password', '/Users/yangmutong/Documents/test/');
console.log(result.wallet);
console.log(result.keyStore);

const extractedKeyStore = keyStoreFunctions.extractFromKeyStore(`/Users/yangmutong/Documents/test/${result.wallet.address}_keyStore.json`, 'password');
console.log(extractedKeyStore);

Keywords

AElf

FAQs

Package last updated on 16 Aug 2019

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