Before continuing, you can verify things are working properly by entering into your browser:
You should see some valid JSON being returned.
If not, try:
If things are not working correctly, you can look at the contents of the docker file:
Reminder: If you want to browse the file system inside your Docker container, you can run the command:
docker exec -it <container_name> bash.
Once the protocol is activated, you can play with the new chain. For example, you can transfer some tokens from one account to another using
We will use the alias 'alice' to refer to the
bootstrap_account entry with these values:
Account alice has 4,000,000 of Tez. Check it out with this command:
The secret keys used here are unencrypted. This is unsafe in general but useful for the simplicity of the examples. Consider not using them if you care about security (even in a private blockchain without real money). In order to encrypt bakers and genesis secret keys, you can provide an
Let's generate a new account named bob:
You can acces to his address with this command:
Bob has 0 Tez since we just created his account.
Now, let's transfer some Tez from alice to bob with this command:
Finally, you can check that bob has indeed received 100 Tez
To conclude, we have seen how to create a private blockchain by generating a genesis block and bootstrapping at least two bakers. These two bakers will validate the first blocks, allowing the realization of the first transactions of the blockchain.