Skip to main content

Lido CLI tool for node operator key validation

Project description

Node Operator Key Checker CLI

Installation

You can get this tool using pip:

pip install lido-cli

Or if you cloned this repository, install Python dependencies via:

./init.sh

Depending on how it's installed use:

lido-cli ...opts command ...opts or python lido_validate_keys.py ...opts command ...opts

Running

RPC Provider

This is the only thing required, the rest will be handled automatically unless overridden.

lido-cli --rpc https://mainnet.provider.io/v3/XXX validate_network_keys

Optional Parameters

By default CLI will use embedded strings and ABIs, but you can specify your own arguments if needed. Make sure to use them on CLI itself and not on the command eg:

lido-cli --rpc https://mainnet.provider.io/v3/XXX --max_multicall 300 --lido_address 0x123 --lido_abi_path /Users/x/xx.json --registry_address 0x123 --registry_abi_path /Users/x/xx.json validate_network_keys
--rpc                                   RPC provider for network calls.
--max_multicall				Batch amount of function calls to fit into one RPC call.
--lido_address				Address of the main contract.
--lido_abi_path				ABI file path for the main contract.
--registry_address			Address of the operator contract.
--registry_abi_path			ABI file path for operators contract.

Checking Network Keys

Command: validate_network_keys

Example:

lido-cli --rpc https://mainnet.provider.io/v3/XXX validate_network_keys

Checking Keys from File

Command: validate_file_keys Specify the input file via --file or copy it as input.json to the cli folder

Example with default file location:

lido-cli --rpc https://mainnet.provider.io/v3/XXX validate_file_keys

Example with custom file path:

lido-cli --rpc https://mainnet.provider.io/v3/XXX validate_file_keys --file input.json

You can also get all commands and options via python lido_validate_keys.py --help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

lido-cli-1.2.0.tar.gz (4.5 kB view hashes)

Uploaded Source

Built Distribution

lido_cli-1.2.0-py3-none-any.whl (4.7 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page