Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ddnlink/ddn-cli
DDN Client
https://github.com/ddnlink/ddn-cli
Last synced: about 2 months ago
JSON representation
DDN Client
- Host: GitHub
- URL: https://github.com/ddnlink/ddn-cli
- Owner: ddnlink
- License: mit
- Created: 2019-08-22T08:40:26.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T23:38:55.000Z (about 2 years ago)
- Last Synced: 2023-03-10T05:16:42.745Z (almost 2 years ago)
- Language: JavaScript
- Size: 200 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DDN Client
A command line tool to manage [DDN](https://github.com/ddnlink) blockchain apps.
## Installation
由于依赖的inquirer模块在低版本node下存在bug
最新的dapps系列子命令要求node版本号为v8.4.0以上```
npm install -g ddn-cli
```## Usage
```
./bin/ddn-cli --helpUsage: ddn-cli [options] [command]
Commands:
getheight get block height
getblockstatus get block status
openaccount [secret] open your account and get the infomation by secret
openaccountbypublickey [publickey] open your account and get the infomation by publickey
getbalance [address] get balance by address
getaccount [address] get account by address
getvoteddelegates [options] [address] get delegates voted by address
getdelegatescount get delegates count
getdelegates [options] get delegates
getvoters [publicKey] get voters of a delegate by public key
getdelegatebypublickey [publicKey] get delegate by public key
getdelegatebyusername [username] get delegate by username
getblocks [options] get blocks
getblockbyid [id] get block by id
getblockbyheight [height] get block by height
getpeers [options] get peers
getunconfirmedtransactions [options] get unconfirmed transactions
gettransactions [options] get transactions
gettransaction [id] get transactions
sendmoney [options] send money to some address
registerdelegate [options] register delegate
upvote [options] vote for delegates
downvote [options] cancel vote for delegates
setsecondsecret [options] set second secret
registerdapp [options] register a dapp
contract [options] contract operations
crypto [options] crypto operations
dapps [options] manage your dapps
creategenesis [options] create genesis block
peerstat analyze block height of all peers
delegatestat analyze delegates status
ipstat analyze peer ip infoOptions:
-h, --help output usage information
-V, --version output the version number
-H, --host Specify the hostname or ip of the node, default: 127.0.0.1
-P, --port Specify the port of the node, default: 8001
-M, --main Specify the mainnet, default: false
```## Documents
[ddn-docs](https://github.com/ddnlink/ddn-docs)