system - UCHAIN-WORLD/uchain-fullnode GitHub Wiki
title: system
Command list
-
stop ucd.shutdown- Parameters (positional)
ADMINNAMEWallet name.ADMINAUTHWallet password/authorization.
- Example
$ uc-cli shutdown tony4 456789 sending SIGTERM to ucd.
-
showinfodisplay infomation of the blockchain.
- Parameters (positional)
ADMINNAMEWallet name.ADMINAUTHWallet 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" }
-
addpeerThis command is used to add/remove p2p node.
- Parameters (named)
-oor[--operation]The operationadd/banto the target node address. default:add.
- Parameters (positional)
NODEADDRESSThe target node address, e.g: 10.10.10.1:5251.ADMINNAMEadmin name.ADMINAUTHadmin password/authorization.
- Example
uc-cli addpeer 192.168.16.157 5682 success
-
showpeerslist peers already added
- Example
$ uc-cli showpeers [ "192.168.16.243:51457", "192.168.16.243:5682" ]