Skip to content

Add an argument to specify client type / chain provider #1

Description

@sergerad

Currently the CLI works as follows:

$ blockrs -h                                                                                                                       
TUI for tailing chain data

Usage: blockrs [OPTIONS] <RPC_URL>

Arguments:
  <RPC_URL>  ...

In anticipation of adding support for other chain providers beyond Eth RPC, we should add an argument before the <RPC_URL> to specify which provider to use. This should map to the provider implementation in the providers dir.

The new usage should look like this:

Usage: blockrs [OPTIONS] <PROVIDER> <RPC_URL>

The README.md should be updated to the effect of:

blockrs eth https://rpc.flashbots.net

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions