rootchain

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 21, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

README

Rootchain helper command

Top level command for manipulating rootchain server.

Start rootchain server

This command starts ethereum/client-go container which is Geth node started in dev mode.

$ metad rootchain server

Fund initialized accounts

This command funds the initialized accounts via metad polybft-secrets command.

$ metad rootchain fund --data-dir data-dir- --num 2

or

$ metad rootchain fund --data-dir data-dir-1

Deploy and initialize contracts

This command deploys and initializes rootchain contracts. Transactions are being sent to given --json-rpc endpoint and are signed by private key provided by --adminKey flag.

$ metad rootchain deploy \
    --genesis <chain_config_file> \
    --deployer-key <hex_encoded_rootchain_deployer_private_key> \
    --json-rpc <json_rpc_endpoint> 

Note: In case test flag is provided, it engages test mode, which uses predefined test account private key to send transactions to the rootchain.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommand

func GetCommand() *cobra.Command

GetCommand creates "rootchain" helper command

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL