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 a name (..., Florence, Granada, ...).
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.
Show current endpoint
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 run smart contracts locally without the need to interact with a network. It is used to speed up the development of smart contracts as it removes the network latency (injection, confirmation, ...).
The following command initialises a new mockup (erases previous one) :
This command makes all registered accounts available in the mockup mode and tansfers 1000 XTZ to each.
To turn mockup mode on, use the following command:
The mockup mode requires the Tezos client to be installed and executed with the command
tezos-client. Please refer to this page for installation instructions.
To install and start the sandbox, run the following command:
This command assumes you have docker installed and running. The container is downloaded the first time you run this command; it may then take some time.
Check the container is running with the following docker command:
The following command stops the sandbox:
The sandbox endpoint is already available in the list of known endpoints. You need to switch to the
sandbox endpoint with:
The sandbox comes with two accounts, 'alice' and 'bob':
You can import a faucet account as explained here, but in the sandbox the faucet account does not come with any tezies. You then need to transfer some from Alice or Bob account: