Skip to main content

celocli network

View details about the network, like contracts and parameters

celocli network:contracts

Lists Celo core contracts and their addesses.

USAGE
$ celocli network:contracts [--gasCurrency <value>] [--globalHelp] [--columns <value>
| -x] [--filter <value>] [--no-header | [--csv | --no-truncate]] [--output
csv|json|yaml | | ] [--sort <value>]

FLAGS
-x, --extended
show extra columns

--columns=<value>
only show provided columns (comma-separated)

--csv
output is csv format [alias: --output=csv]

--filter=<value>
filter property by partial string matching, ex: name=foo

--gasCurrency=0x1234567890123456789012345678901234567890
Use a specific gas currency for transaction fees (defaults to CELO if no gas
currency is supplied). It must be a whitelisted token.

--globalHelp
View all available global flags

--no-header
hide table header from output

--no-truncate
do not truncate output to fit screen

--output=<option>
output in a more machine friendly format
<options: csv|json|yaml>

--sort=<value>
property to sort by (prepend '-' for descending)

DESCRIPTION
Lists Celo core contracts and their addesses.

See code: src/commands/network/contracts.ts

celocli network:info

View general network information such as the current block number

USAGE
$ celocli network:info [--gasCurrency <value>] [--globalHelp] [-n <value>]

FLAGS
-n, --lastN=<value>
[default: 1] Fetch info about the last n epochs

--gasCurrency=0x1234567890123456789012345678901234567890
Use a specific gas currency for transaction fees (defaults to CELO if no gas
currency is supplied). It must be a whitelisted token.

--globalHelp
View all available global flags

DESCRIPTION
View general network information such as the current block number

See code: src/commands/network/info.ts

celocli network:parameters

View parameters of the network, including but not limited to configuration for the various Celo core smart contracts.

USAGE
$ celocli network:parameters [--gasCurrency <value>] [--globalHelp] [--raw]

FLAGS
--gasCurrency=0x1234567890123456789012345678901234567890 Use a specific gas currency
for transaction fees
(defaults to CELO if no gas
currency is supplied). It
must be a whitelisted token.
--globalHelp View all available global
flags
--raw Display raw numerical
configuration

DESCRIPTION
View parameters of the network, including but not limited to configuration for the
various Celo core smart contracts.

See code: src/commands/network/parameters.ts

celocli network:whitelist

List the whitelisted fee currencies

USAGE
$ celocli network:whitelist [--gasCurrency <value>] [--globalHelp]

FLAGS
--gasCurrency=0x1234567890123456789012345678901234567890 Use a specific gas currency
for transaction fees
(defaults to CELO if no gas
currency is supplied). It
must be a whitelisted token.
--globalHelp View all available global
flags

DESCRIPTION
List the whitelisted fee currencies

EXAMPLES
whitelist

See code: src/commands/network/whitelist.ts