The Tezos blockchain provides serveral networks:
- a main network which is the real operating network where real cryptocurrency are exchanged
- several test networks:
- one in the same version (to test current network)
- one(s) in the future main net version(s) (to test/preprare future version of smart contracts)
- optionally several in older versions
Each version of the blockchain is given the name of a city whose first letter is the next one to the previous.
An endpoint is an entry node to the network. You interact with the blockchain through an endpoint. You need to specify the endpoint's URL when interacting with the blockchain.
completium-cli offers a convenient network management system to register, show and switch networks.
Display the endpoint completium is currently using:
Select the current endpoint from menu with the following command:
completium-cli comes with a set of pre-configured endpoints:
Use up/down arrows to select the required endpoint.
The command fails if the endpoint is not registered (see
add endpoint above).
The mockup mode is used to test smart contracts. It runs smart contracts locally without the need to interact with a network.
The mockup mode requires the Tezos client to be installed and executed with the command
octez-client. Please refer to this page for installation instructions. See instructions below to configure
completium-cli to use the Tezos client.
The following command must be run the first time and every time you need to reinitialise it:
The command above also sets the current endpoint to
set endpoint and
switch endpoint commands can also be used:
The effect of the
mockup init command is to make all registered accounts available to the mockup mode, and to initialise each account balance to 1000XTZ. By default, 8 accounts are available to the mockup mode:
It is possible to specify the protocol for mockup mode. For example:
Once the Tezos client is installed, the
set binary path command tells
completium-cli how to invoke it:
PATH is the absolute path to the Tezos client binary.
show binary path command displays the path.