Implement chain details lookup from RPC status endpoint or Cosmos Registry instead of requiring configs
Opened this issue · 0 comments
pharr117 commented
We can eliminate some of the required config values by looking up chain details using one (or both depending on what we want to pull in) of the following methods:
- /status endpoint RPC - contains
result.node_info.network
showing the chain ID value - Chain Registry for the particular chain:
- Contains
bech32_prefix
for the address prefix usable by message parsers - Subfolders do not match network name, we would need to most likely hit the RPC and get the chain subfolder by matching on the network name
- Contains
Doing this will have some implications, mainly with what chain we store in the database. The database can contain multiple chains and we denote them using the network name.
We will then be able to eliminate the hard-coded config values for ChainID and account prefix from the [probe] block