Skip to content

Instantly share code, notes, and snippets.

@AhmedKamal20
Last active June 20, 2019 14:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save AhmedKamal20/e0d954fa21c535c34a691844ecf7fe7f to your computer and use it in GitHub Desktop.
Save AhmedKamal20/e0d954fa21c535c34a691844ecf7fe7f to your computer and use it in GitHub Desktop.
Try Libra TestNet On Ubuntu Docker

Clone The Repo

git clone https://github.com/libra/libra.git && cd libra

Run Ubuntu Image

docker run -it --name libra -v $PWD:/root/libra --workdir /root/libra ubuntu bash

Update And Install some necessary dependencies

apt update
apt install sudo curl zip git

Run The Install Script

./scripts/dev_setup.sh

Install protoc

PROTOC_ZIP=protoc-3.8.0-linux-x86_64.zip
curl -OL https://github.com/google/protobuf/releases/download/v3.8.0/$PROTOC_ZIP
sudo unzip -o $PROTOC_ZIP -d /usr/local bin/protoc
sudo unzip -o $PROTOC_ZIP -d /usr/local include/*
rm -f $PROTOC_ZIP

Run the CLI for TestNet

./scripts/cli/start_cli_testnet.sh

Play

usage: <command> <args>

Use the following commands:

account | a
  Account operations
query | q
  Query operations
transfer | transferb | t | tb
  <sender_account_address>|<sender_account_ref_id> <receiver_account_address>|<receiver_account_ref_id> <number_of_coins> [gas_unit_price (default=0)] [max_gas_amount (default 10000)] Suffix 'b' is for blocking.
  Transfer coins from account to another.
help | h
  Prints this help
quit | q!
  Exit this client


Please, input commands:

libra%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment