Skip to content

jasonliu62/cfx-evm-sync-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cfx-evm-sync-sdk

This tool retrieves block data from multiple RPC nodes concurrently and saves it as JSON files.

Features

  • Concurrently retrieves block data from multiple RPC nodes.
  • Converts block data to JSON format and saves it as individual files.
  • Supports configuration of RPC nodes using Viper.

Dependencies

Installation

  1. Clone the repository:

    git clone https://github.com/your-username/your-repository.git
  2. Navigate to the project directory:

cd your-repository
  1. Build the project:

    go build

Usage

Config

Edit the config.yaml file in the config directory to specify the RPC nodes you want to connect to:

rpc_nodes:
  - "https://node1.example.com"
  - "https://node2.example.com"

Edit the config.yaml file in the config directory to specify the starting and ending nodes to:

block:
  start: x
  end: y

Running the Tool

Run the executable file with the following command:

./cfx-evm-sync-sdk

The tool will concurrently retrieve block data from the specified RPC nodes and save it as JSON files.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages