CLI
Goloop CLI
goloop
Command | Description |
---|---|
Manage chains | |
DEBUG API | |
Genesis transaction manipulation | |
Genesis storage manipulation | |
Keystore manipulation | |
JSON-RPC API | |
Server management | |
Display a live streams of chains metric-statistics | |
System info | |
User management | |
Print goloop version |
Manage chains
goloop chain TASK CID PARAM
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--config, -c | | false | | Parsing configuration file |
--key_store | | false | | KeyStore file for wallet |
--node_dir | | false | | Node data directory(default:[configuration file path]/.chain/[ADDRESS]) |
--node_sock, -s | | true | | Node Command Line Interface socket path(default:[node_dir]/cli.sock) |
Command | Description |
---|---|
Start to backup the channel | |
Configure chain | |
Download chain genesis file | |
Start to import legacy database | |
Inspect chain | |
Join chain | |
Leave chain | |
List chains | |
Start to prune the database based on the height | |
Chain data reset | |
Chain start | |
Chain stop | |
Chain data verify |
Start to backup the channel
goloop chain backup CID
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--config, -c | | false | | Parsing configuration file |
--key_store | | false | | KeyStore file for wallet |
--node_dir | | false | | Node data directory(default:[configuration file path]/.chain/[ADDRESS]) |
--node_sock, -s | | true | | Node Command Line Interface socket path(default:[node_dir]/cli.sock) |
Configure chain
goloop chain config CID KEY VALUE
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--config, -c | | false | | Parsing configuration file |
--key_store | | false | | KeyStore file for wallet |
--node_dir | | false | | Node data directory(default:[configuration file path]/.chain/[ADDRESS]) |
--node_sock, -s | | true | | Node Command Line Interface socket path(default:[node_dir]/cli.sock) |
Download chain genesis file
goloop chain genesis CID FILE
Start to import legacy database
goloop chain import CID [flags]
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--db_path | | true | | Database path |
--height | | true | 0 | Block Height |
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--config, -c | | false | | Parsing configuration file |
--key_store | | false | | KeyStore file for wallet |
--node_dir | | false | | Node data directory(default:[configuration file path]/.chain/[ADDRESS]) |
--node_sock, -s | | true | | Node Command Line Interface socket path(default:[node_dir]/cli.sock) |
Inspect chain
goloop chain inspect CID [flags]
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--format, -f | | false | | Format the output using the given Go template |
--informal | | false | false | Inspect with informal data |
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--config, -c | | false | | Parsing configuration file |
--key_store | | false | | KeyStore file for wallet |
--node_dir | | false | | Node data directory(default:[configuration file path]/.chain/[ADDRESS]) |
--node_sock, -s | | true | | Node Command Line Interface socket path(default:[node_dir]/cli.sock) |
Join chain
goloop chain join [flags]
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--auto_start | | false | false | Auto start |
--channel | | false | | Channel |
--concurrency | | false | 1 | Maximum number of executors to be used for concurrency |
--db_type | | false | goleveldb | Name of database system(*badgerdb, goleveldb, boltdb, mapdb) |
--default_wait_timeout | | false | 0 | Default wait timeout in milli-second (0: disable) |
--genesis | | false | | Genesis storage path |
--genesis_template | | false | | Genesis template directory or file |
--max_block_tx_bytes | | false | 0 | Max size of transactions in a block |
--max_wait_timeout | | false | 0 | Max wait timeout in milli-second (0: uses same value of default_wait_timeout) |
--node_cache | | false | none | Node cache (none,small,large) |
--normal_tx_pool | | false | 0 | Size of normal transaction pool |
--patch_tx_pool | | false | 0 | Size of patch transaction pool |
--platform | | false | | Name of service platform |
--role | | false | 3 | [0:None, 1:Seed, 2:Validator, 3:Both] |
--secure_aeads | | false | chacha,aes128,aes256 | Supported Secure AEAD with order (chacha,aes128,aes256) - Comma separated string |
--secure_suites | | false | none,tls,ecdhe | Supported Secure suites with order (none,tls,ecdhe) - Comma separated string |
--seed | | false | | List of trust-seed ip-port, Comma separated string |
--tx_timeout | | false | 0 | Transaction timeout in milli-second (0: uses system default value) |
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--config, -c | | false | | Parsing configuration file |
--key_store | | false | | KeyStore file for wallet |
--node_dir | | false | | Node data directory(default:[configuration file path]/.chain/[ADDRESS]) |
--node_sock, -s | | true | | Node Command Line Interface socket path(default:[node_dir]/cli.sock) |
Leave chain
goloop chain leave CID
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--config, -c | | false | | Parsing configuration file |
--key_store | | false | | KeyStore file for wallet |
--node_dir | | false | | Node data directory(default:[configuration file path]/.chain/[ADDRESS]) |
--node_sock, -s | | true | | Node Command Line Interface socket path(default:[node_dir]/cli.sock) |
List chains
goloop chain ls
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--config, -c | | false | | Parsing configuration file |
--key_store | | false | | KeyStore file for wallet |
--node_dir | | false | | Node data directory(default:[configuration file path]/.chain/[ADDRESS]) |
--node_sock, -s | | true | | Node Command Line Interface socket path(default:[node_dir]/cli.sock) |
Start to prune the database based on the height
goloop chain prune CID [flags]
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--db_type | | false | | Database type(default:original database type) |
--height | | true | 0 | Block Height |
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--config, -c | | false | | Parsing configuration file |
--key_store | | false | | KeyStore file for wallet |
--node_dir | | false | | Node data directory(default:[configuration file path]/.chain/[ADDRESS]) |
--node_sock, -s | | true | | Node Command Line Interface socket path(default:[node_dir]/cli.sock) |
Chain data reset
goloop chain reset CID
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--config, -c | | false | | Parsing configuration file |
--key_store | | false | | KeyStore file for wallet |
--node_dir | | false | | Node data directory(default:[configuration file path]/.chain/[ADDRESS]) |
--node_sock, -s | | true | | Node Command Line Interface socket path(default:[node_dir]/cli.sock) |
Chain start
goloop chain start CID
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--config, -c | | false | | Parsing configuration file |
--key_store | | false | | KeyStore file for wallet |
--node_dir | | false | | Node data directory(default:[configuration file path]/.chain/[ADDRESS]) |
--node_sock, -s | | true | | Node Command Line Interface socket path(default:[node_dir]/cli.sock) |
Chain stop
goloop chain stop CID
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--config, -c | | false | | Parsing configuration file |
--key_store | | false | | KeyStore file for wallet |
--node_dir | | false | | Node data directory(default:[configuration file path]/.chain/[ADDRESS]) |
--node_sock, -s | | true | | Node Command Line Interface socket path(default:[node_dir]/cli.sock) |
Chain data verify
goloop chain verify CID
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--config, -c | | false | | Parsing configuration file |
--key_store | | false | | KeyStore file for wallet |
--node_dir | | false | | Node data directory(default:[configuration file path]/.chain/[ADDRESS]) |
--node_sock, -s | | true | | Node Command Line Interface socket path(default:[node_dir]/cli.sock) |
DEBUG API
goloop debug
Name,shorthand | Environment Variable | Required | Default | Description |
---|---|---|---|---|
--uri | GOLOOP_DEBUG_URI | true | | URI of DEBUG API |
Command | Description |
---|---|
Get trace of the transaction |