In this tutorial we are going to explore and see what files that have been created during the installation and how we can interact with the ZooBc node. As per usual, the first thing you need to do is open your terminal.
Connect to your server:
- Connect your SSH by using command
ssh root @IPAddress
The server should already recognised it because awe already connected in the past.
2. Update and Upgrade the server
This step here is crucial, because if you don’t do an update then the node is going to be vulnerable to an attack
$ apt get update
$ apt get upgrade
It will then going to ask you “Do you want to continue because this is going to use this space” and I say yes and this is going to go through all the servers. All the repositories and do an update process.
Exploring the ZooBC node:
After all the upgrade is done, let’s go back to see what happens after we installed the ZooBc Node.
- Go inside the zoobc directory that we have created last tutorial
2. Let’s take a look what is inside the folder by using this command:
As you can see we have our installer, and there is also a new folder where all the software is being installed.
3. Go inside the zoobc.mainnet and let’s see what is inside the folder
Here we have 1 confitguration file, and 2 binary or executable files
4. Let’s open and see what in the configuration file
As you can see, there is some settings for the spam, the port where the connection happened, the database, and the owner account address. Alright press “Q” to exit.
5. Let’s check the resource folder, and see inside the log file
You can see 4 different logs that upgraded here so we need to check and see what kind of error or messages are logged in. Let say when we are doing our experiment and we are trying to create a transaction online but It does not work, we can check these logs and see why and what is happening.
6. Let’s check go back to the resource folder, and let’s check the node_keys.json
In this files, there is the node key, public key, and the seed. The seed is used to communicate with the rest of the node in the peer to peer network.
7. Go back to the zoobc main net, and let check our current status with using command down below:
./zoobc daemon status
And you can see above that it’s running. Moreover, if you want to check what else can be done simply type this command below:
./zoobc daemon -h
And you will see all other instruction, and parameters.
8. Let’s take a look for the zcmd. If I typed “./zcmd -h” on the command line it shows many different functionality to interact with the ZooBC node
9. Functionalities for the zcmd transaction
./zcmd transaction -h
And you can see above that all the functionalities if you are using the command line for the transaction
10. Zcmd functionalities to send the ZooBC transaction
./zcmd send-zbc -h
And you can see below all the command line for sending the zoobc. For instance, if you want to send a zoobc coin from one to another, you can directly choose how much is the amount that you are sending. All these functionalities from the command line is the exact same option that you can find from the ZooBC wallet.
11. Zcmd functionalities to check the ZooBC account.
./zcmd account -h
As you can see above we have a Bitcoin or Ethereum options, this because ZooBC or DecBC is agnostic if it comes to account format, so you can you the Bitcoin or the Ethereum format to receive and send ZooBC. This allows to create very easy bridge through blockchain.
11. Zcmd functionalities to check the account hexconv.
./zcmd account hexconv -h
With this command I can choose the account types.
Next let’s try this command below to check the encode account address by doing the command:
./zcmd account hexconv – – encodedAccountAddress #YourZooBCAccountAddress
And the command changes the address from “Human readable” format to Decimal and Hexa-Decimal.
The Zcmd command line is very crucial but you can definitely explore yourself, by learning this it gonna be more interactive. Thank you for following this tutorial, In next episode we are going to learn how to interacting with the database! But before that, If you want to see the full step-by-step of this episode kindly check our Youtube – Interacting with the ZooBC node via CLI