Documentation ¶
Overview ¶
Sourced from https://github.com/tharsis/ethermint/blob/main/cmd/ethermintd/genaccounts.go
Index ¶
- Constants
- func AddGenesisAccountCmd(defaultNodeHome string) *cobra.Command
- func NewRootCmd() *cobra.Command
- func NodeInfoRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
- func NodeSyncingRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
- func StatusCommand() *cobra.Command
- type NodeInfoResponse
- type SyncingResponse
Constants ¶
View Source
const EnvPrefix = "AETH"
EnvPrefix is the prefix environment variables must have to configure the app.
Variables ¶
This section is empty.
Functions ¶
func AddGenesisAccountCmd ¶
AddGenesisAccountCmd returns add-genesis-account cobra Command.
func NewRootCmd ¶
NewRootCmd creates a new root command for the aeth blockchain.
func NodeInfoRequestHandlerFn ¶
func NodeInfoRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
REST handler for node info
func NodeSyncingRequestHandlerFn ¶
func NodeSyncingRequestHandlerFn(clientCtx client.Context) http.HandlerFunc
REST handler for node syncing
func StatusCommand ¶
StatusCommand returns the command to return the status of the network.
Types ¶
type NodeInfoResponse ¶
type NodeInfoResponse struct { p2p.DefaultNodeInfo `json:"node_info"` ApplicationVersion version.Info `json:"application_version"` }
NodeInfoResponse defines a response type that contains node status and version information.
type SyncingResponse ¶
type SyncingResponse struct {
Syncing bool `json:"syncing"`
}
SyncingResponse defines a response type that contains node syncing information.
Click to show internal directories.
Click to hide internal directories.