This repository was archived by the owner on Nov 30, 2021. It is now read-only.

Description
Presently it seems impossible to pass configuration options from the CLI to the RPC command.
This is how we produce the rpc command: lcd.ServeCommand(cdc, registerRoutes). ServeCommand requires a function with signature func (_ *lcd.RestServer). Thus, inside of registerRoutes, where modules are enabled, there is no access to the cli context. Ironically lcd.RestServer has a cli context but from "github.com/cosmos/cosmos-sdk/client/context", which provides no access.
There may be a way to use Viper (or Cobra) to bind a variable to the cli flags, yet to figure out for myself.
For the time being, "web3" and "eth" are enabled by default.