flags

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: Apache-2.0 Imports: 4 Imported by: 39

Documentation

Index

Constants

View Source
const (
	WithCometBFT = "with-cometbft"
	Address      = "address"
	Transport    = "transport"
	TraceStore   = "trace-store"
	CPUProfile   = "cpu-profile"

	// AppDBBackend is the type of database for application and snapshots databases
	AppDBBackend = "app-db-backend"
)

CometBFT/cosmos-sdk full-node start flags

View Source
const (
	GRPCOnly       = "grpc-only"
	GRPCEnable     = "grpc.enable"
	GRPCAddress    = "grpc.address"
	GRPCWebEnable  = "grpc-web.enable"
	GRPCWebAddress = "grpc-web.address"
)

GRPC-related flags.

View Source
const (
	RPCEnable         = "api.enable"
	EnabledUnsafeCors = "api.enabled-unsafe-cors"
)

Cosmos API flags

View Source
const (
	JSONRPCEnable               = "json-rpc.enable"
	JSONRPCAPI                  = "json-rpc.api"
	JSONRPCAddress              = "json-rpc.address"
	JSONWsAddress               = "json-rpc.ws-address"
	JSONRPCWSOrigins            = "json-rpc.ws-origins"
	JSONRPCGasCap               = "json-rpc.gas-cap"
	JSONRPCAllowInsecureUnlock  = "json-rpc.allow-insecure-unlock"
	JSONRPCEVMTimeout           = "json-rpc.evm-timeout"
	JSONRPCTxFeeCap             = "json-rpc.txfee-cap"
	JSONRPCFilterCap            = "json-rpc.filter-cap"
	JSONRPCLogsCap              = "json-rpc.logs-cap"
	JSONRPCBlockRangeCap        = "json-rpc.block-range-cap"
	JSONRPCHTTPTimeout          = "json-rpc.http-timeout"
	JSONRPCHTTPIdleTimeout      = "json-rpc.http-idle-timeout"
	JSONRPCAllowUnprotectedTxs  = "json-rpc.allow-unprotected-txs"
	JSONRPCMaxOpenConnections   = "json-rpc.max-open-connections"
	JSONRPCEnableIndexer        = "json-rpc.enable-indexer"
	JSONRPCBatchRequestLimit    = "json-rpc.batch-request-limit"
	JSONRPCBatchResponseMaxSize = "json-rpc.batch-response-max-size"
	JSONRPCEnableProfiling      = "json-rpc.enable-profiling"
	// JSONRPCEnableMetrics enables EVM RPC metrics server.
	// Set to `metrics` which is hardcoded flag from go-ethereum.
	// https://github.com/ethereum/go-ethereum/blob/master/metrics/metrics.go#L35-L55
	JSONRPCEnableMetrics            = "metrics"
	JSONRPCFixRevertGasRefundHeight = "json-rpc.fix-revert-gas-refund-height"
)

JSON-RPC flags

View Source
const (
	EVMTracer                  = "evm.tracer"
	EVMMaxTxGasWanted          = "evm.max-tx-gas-wanted"
	EVMEnablePreimageRecording = "evm.cache-preimage"
	EVMChainID                 = "evm.evm-chain-id"
)

EVM flags

View Source
const (
	TLSCertPath = "tls.certificate-path"
	TLSKeyPath  = "tls.key-path"
)

TLS flags

Variables

This section is empty.

Functions

func AddTxFlags

func AddTxFlags(cmd *cobra.Command) (*cobra.Command, error)

AddTxFlags adds common flags for commands to post tx

Types

This section is empty.

Jump to

Keyboard shortcuts

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