{"modulePath":"github.com/functionx/fx-core/v6","version":"v6.1.0","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package cli\n\n## Constants\n\n```go\nconst (\n\t// FlagOverwrite defines a flag to overwrite an existing genesis JSON file.\n\tFlagOverwrite = \"overwrite\"\n\n\t// FlagRecover defines a flag to initialize the private validator key from a specific seed.\n\tFlagRecover = \"recover\"\n)\n```\n\n## Functions\n\n```go\nfunc AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command\n```\nAddGenesisAccountCmd returns add-genesis-account cobra Command.\n\n```go\nfunc AddrCmd() *cobra.Command\n```\n\n```go\nfunc AttributesToMap(attrs []types.EventAttribute) []map[string]interface{}\n```\n\n```go\nfunc BlockCommand() *cobra.Command\n```\nBlockCommand returns the verified block data for a given heights\n\n```go\nfunc BuildCreateValidatorMsg(clientCtx client.Context, config cli.TxCreateValidatorConfig, txFactory tx.Factory) (tx.Factory, sdk.Msg, error)\n```\nBuildCreateValidatorMsg makes a new MsgCreateValidator.\n\n```go\nfunc ChecksumEthAddressCmd() *cobra.Command\n```\n\n```go\nfunc CollectGenTxsCmd(genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command\n```\nCollectGenTxsCmd - return the cobra command to collect genesis transactions\n\n```go\nfunc CollectTxs(cdc codec.JSONCodec, txJSONDecoder sdk.TxDecoder, genTxsDir string,\n\tgenDoc tmtypes.GenesisDoc, genBalIterator types.GenesisBalancesIterator,\n) (appGenTxs []sdk.Tx, persistentPeers string, err error)\n```\nCollectTxs processes and validates application's genesis Txs and returns the list of appGenTxs, and persistent peers required to generate genesis.json.\n\n```go\nfunc CovertTxDataToHashCmd() *cobra.Command\n```\n\n```go\nfunc Debug() *cobra.Command\n```\n\n```go\nfunc DecodeSimulateTxCmd() *cobra.Command\n```\n\n```go\nfunc GenAppStateFromConfig(cdc codec.JSONCodec, txEncodingConfig client.TxEncodingConfig,\n\tconfig *cfg.Config, initCfg types.InitConfig, genDoc tmtypes.GenesisDoc, genBalIterator types.GenesisBalancesIterator,\n) (appState json.RawMessage, err error)\n```\nGenAppStateFromConfig gets the genesis app state from the config\n\n```go\nfunc GenTxCmd(mbm module.BasicManager, txEncCfg client.TxEncodingConfig, genBalIterator types.GenesisBalancesIterator, defaultNodeHome string) *cobra.Command\n```\nGenTxCmd builds the application's gentx command.\n\n```go\nfunc InitCmd(nodeHome string, genesisState map[string]json.RawMessage, consensusParams *tmproto.ConsensusParams) *cobra.Command\n```\nInitCmd returns a command that initializes all files needed for Tendermint and the respective application.\n\n```go\nfunc ModuleAddressCmd() *cobra.Command\n```\nModuleAddressCmd Deprecated: please use \\`fxcored query auth module-account\\`\n\n```go\nfunc ParseBlockResults(cdc codec.JSONCodec, blockResults *coretypes.ResultBlockResults) (interface{}, error)\n```\n\n```go\nfunc PrintOutput(ctx client.Context, any interface{}) error\n```\n\n```go\nfunc PubkeyCmd() *cobra.Command\n```\n\n```go\nfunc QueryBlockResultsCmd() *cobra.Command\n```\n\n```go\nfunc QueryGasPricesCmd() *cobra.Command\n```\n\n```go\nfunc QueryStoreCmd() *cobra.Command\n```\n\n```go\nfunc QueryTxCmd() *cobra.Command\n```\nQueryTxCmd implements the default command for a tx query.\n\n```go\nfunc QueryTxsByEventsCmd() *cobra.Command\n```\nQueryTxsByEventsCmd returns a command to search through transactions by events.\n\n```go\nfunc QueryValidatorByConsAddr() *cobra.Command\n```\n\n```go\nfunc StatusCommand() *cobra.Command\n```\nStatusCommand returns the command to return the status of the network.\n\n```go\nfunc ToBytes32Cmd() *cobra.Command\n```\n\n```go\nfunc ToStringCmd() *cobra.Command\n```\n\n```go\nfunc TxResponseToMap(cdc codec.JSONCodec, txResponse *sdk.TxResponse) map[string]interface{}\n```\n\n```go\nfunc TxResultToMap(cdc codec.JSONCodec, txResult *types.ResponseDeliverTx) map[string]interface{}\n```\n\n```go\nfunc ValidateAccountInGenesis(\n\tappGenesisState map[string]json.RawMessage, genBalIterator types.GenesisBalancesIterator,\n\taddr sdk.Address, coins sdk.Coins, cdc codec.JSONCodec,\n) error\n```\nValidateAccountInGenesis checks that the provided account has a sufficient balance in the set of genesis accounts.\n\n```go\nfunc VerifyTxCmd() *cobra.Command\n```\n\n## Types\n\n```go\ntype PrintInfo struct {\n\tMoniker    string          `json:\"moniker\" yaml:\"moniker\"`\n\tChainID    string          `json:\"chain_id\" yaml:\"chain_id\"`\n\tNodeID     string          `json:\"node_id\" yaml:\"node_id\"`\n\tGenTxsDir  string          `json:\"gentxs_dir\" yaml:\"gentxs_dir\"`\n\tAppMessage json.RawMessage `json:\"app_message\" yaml:\"app_message\"`\n}\n```\n\n```go\nfunc NewPrintInfo(moniker, chainID, nodeID, genTxsDir string, appMessage json.RawMessage) PrintInfo\n```\n\n","path":"github.com/functionx/fx-core/v6/client/cli","name":"cli","synopsis":"","isRedistributable":true}
