system - UCHAIN-WORLD/uchain-fullnode GitHub Wiki
title: system
Command list
-
stop ucd.shutdown
- Parameters (positional)
ADMINNAME
Wallet name.ADMINAUTH
Wallet password/authorization.
- Example
$ uc-cli shutdown tony4 456789 sending SIGTERM to ucd.
-
showinfo
display infomation of the blockchain.
- Parameters (positional)
ADMINNAME
Wallet name.ADMINAUTH
Wallet password/authorization.
- Example
$ uc-cli showinfo tony4 456789 { "database_version" : "0.0.2", "height" : 63516, "identifier" : 1234567891, "is_mining" : false, "miner-count" : 2, "peers" : 2, "protocol_version" : 70012, "testnet" : false, "token_count" : 2, "wallet_wallet_count" : 3, "wallet_version" : "0.0.2" }
-
addpeer
This command is used to add/remove p2p node.
- Parameters (named)
-o
or[--operation]
The operationadd
/ban
to the target node address. default:add
.
- Parameters (positional)
NODEADDRESS
The target node address, e.g: 10.10.10.1:5251.ADMINNAME
admin name.ADMINAUTH
admin password/authorization.
- Example
uc-cli addpeer 192.168.16.157 5682 success
-
showpeers
list peers already added
- Example
$ uc-cli showpeers [ "192.168.16.243:51457", "192.168.16.243:5682" ]