Skip to content

Instantly share code, notes, and snippets.

@yoshihiro503
Last active June 1, 2020 07:41
Show Gist options
  • Save yoshihiro503/c4fd5d62ea47f852f877f5f274795677 to your computer and use it in GitHub Desktop.
Save yoshihiro503/c4fd5d62ea47f852f877f5f274795677 to your computer and use it in GitHub Desktop.

Preparation

mube@euler:~/gitlab/tezos/tezos-v7-release$ git log -n 1 --pretty=oneline
51977265590ba5fbd166b921e265fa22bf9f66a6 (HEAD -> v7-release, tag: v7.1, origin/v7-release, origin/latest-release) Changelog: add version 7.1 changes
mube@euler:~/gitlab/tezos/tezos-v7-release$ mkdir mockup-base-dir
mube@euler:~/gitlab/tezos/tezos-v7-release$ ./tezos-client --base-dir mockup-base-dir/ list mockup protocols
Warning:
  Failed to acquire the protocol version from the node
  Rpc request failed:
     - meth: GET
     - uri: http://localhost:8732/chains/main/blocks/head/protocols
     - error: Unable to connect to the node: "Unix.Unix_error(Unix.ECONNREFUSED, "connect", "")"

ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK
PsCARTHAGazKbHtnKfLzQg3kms52kSRpgnDY982a9oYsSXRLQEb
mube@euler:~/gitlab/tezos/tezos-v7-release$ ./tezos-client  --protocol ProtoALphaALphaALphaALphaALphaALphaALphaALphaDdp3zK --base-dir mockup-base-dir create mockup
created mockup client base dir in mockup-base-dir
Tezos address added: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx
Tezos address added: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN
Tezos address added: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU
Tezos address added: tz1b7tUupMgCNw2cCLpKTkSD1NZzB5TkP2sv
Tezos address added: tz1ddb9NMYHZi5UzPdzTZMYQQZoMub195zgv
mube@euler:~/gitlab/tezos/tezos-v7-release$ alias mockup-client='./tezos-client --mode mockup --base-dir mockup-base-dir'
mube@euler:~/gitlab/tezos/tezos-v7-release$ mockup-client list known addresses
bootstrap5: tz1ddb9NMYHZi5UzPdzTZMYQQZoMub195zgv (unencrypted sk known)
bootstrap4: tz1b7tUupMgCNw2cCLpKTkSD1NZzB5TkP2sv (unencrypted sk known)
bootstrap3: tz1faswCTDciRzE4oJ9jn2Vm2dvjeyA9fUzU (unencrypted sk known)
bootstrap2: tz1gjaF81ZRRvdzjobyfVNsAeSC6PScjfQwN (unencrypted sk known)
bootstrap1: tz1KqTpEZ7Yob7QbPE4Hy4Wo8fHG8LhKxZSx (unencrypted sk known)

Failed: config show mockup

mube@euler:~/gitlab/tezos/tezos-v7-release$ mockup-client config show mockup
Error:
  Extra command line arguments:
   mockup.

Usage:
  tezos-client [global options] command [command options]
  tezos-client --help (for global options)
  tezos-client [global options] command --help (for command options)

To browse the documentation:
  tezos-client [global options] man (for a list of commands)
  tezos-client [global options] man -v 3 (for the full manual)

Global options (must come before the command):
  -d --base-dir <path>: client data directory
  -c --config-file <path>: configuration file
  -t --timings: show RPC request times
  --chain <hash|tag>: chain on which to apply contextual commands (possible tags are 'main' and 'test')
  -b --block <hash|tag>: block on which to apply contextual commands (possible tags are 'head' and 'genesis')
  -w --wait <none|<int>>: how many confirmation blocks before to consider an operation as included
  -p --protocol <hash>: use commands of a specific protocol
  -l --log-requests: log all requests to the node
  -A --addr <IP addr|host>: IP address of the node
  -P --port <number>: RPC port of the node
  -S --tls: use TLS to connect to node.
  -R --remote-signer <uri>: URI of the remote signer
  -f --password-filename <filename>: path to the password filename
  -M --mode <client|mockup>: how to interact with the node

Commands for editing and viewing the client's config file:
  config show
    Show the config file.

My Environment

  • OS: Ubuntu 18.04
  • OCaml: version 4.09.1
  • tezos: v7.1 51977265590ba5fbd166b921e265fa22bf9f66a6
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment