This tutorial uses tezos-client - a command line interface to Tezos.
brew tap tqtezos/homebrew-tq https://github.com/tqtezos/homebrew-tq.git brew install tezos
tezos-client binary for 64-bit Linux:
Make it executable:
chmod +x tezos-client
Add it to
PATH or create command alias, e.g.
For more ways to install on Linux see tezos-packaging project
Install one of Linux distributions using Windows Subsystem for Linux (WSL) (e.g. Ubuntu 18.04 LTS) and follow instructions for Linux.
tezos-client to use one of public
Tezos nodes in the test network (for this tutorial we would like to
skip setting up a local Tezos node which
tezos-client uses by
tezos-client -A rpcalpha.tzbeta.net -P 443 -S config update
Alternatively, one can use an isolated sandboxed network instead of using a public test-network, see the “Sandbox” section.
Verify that you can run tezos-client and that it points to test nework:
tezos-client Warning: This is NOT the Tezos Mainnet. The node you are connecting to claims to be running on the Tezos Alphanet DEVELOPMENT NETWORK. Do NOT use your fundraiser keys on this network. Alphanet is a testing network, with free tokens. Usage: tezos-client [global options] command [command options] ...
Now that we know we are on a test network let's disable this warning so that we don't see it in the output for every command:
Create Test Wallets
- Go to the faucet
Get Testnet ꜩ, which will download a
.jsonfile with a new wallet. The file will be named with the address of the account we're going to be creating, starting with
- Activate the account, passing it the path to the
.jsonwallet you just downloaded (here, we're calling the account
tezos-client activate account alice with ~/Downloads/tz1QLne6uZFxPRdRfJG8msx5RouENpJoRsfP.json Waiting for the node to be bootstrapped before injection... Current head: BL52YjrSCteP (timestamp: 2019-08-12T15:09:16-00:00, validation: 2019-08-12T15:09:28-00:00) Node is bootstrapped, ready for injecting operations. Operation successfully injected in the node. Operation hash is 'opES9TEa9cazEs1mcc6jcbFAWNFtzLewpCD4evct6oG4T1m2od3' Waiting for the operation to be included... Error:
Error:message at the end of the output.
tezos-clientattempts to wait for operation inclusion but the public Tezos node we are using disallows access (as a security measure) to the part of node api that is necessary for this functionality. We use
--wait nonethroughout these tutorials to avoid this error. If you use your own local Tezos node you can omit
--wait none, the error won't happen.
Make a variable for Alice's account address (notice that the address
is the same as the name of your faucet
Ensure that the activation was successful:
tezos-client get balance for $ALICE_ADDRESS 5310.946554 ꜩ
Now, we'll create a new wallet for Bob, since we'll need a second
account so we can perform transfers, etc. Repeat all steps in this
section starting with getting a new wallet
.json file from the