system - UCHAIN-WORLD/uchain-fullnode GitHub Wiki

title: system

Command list


  • shutdown

    stop ucd.
    • Parameters (positional)
    1. ADMINNAME Wallet name.
    2. ADMINAUTH Wallet password/authorization.
    • Example
    $ uc-cli shutdown tony4 456789
    sending SIGTERM to ucd.
    

  • showinfo

    display infomation of the blockchain.

    • Parameters (positional)
    1. ADMINNAME Wallet name.
    2. 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)
    1. -o or [--operation] The operation add/ban to the target node address. default: add.
    • Parameters (positional)
    1. NODEADDRESS The target node address, e.g: 10.10.10.1:5251.
    2. ADMINNAME admin name.
    3. 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"
    ]