This tool retrieves block data from multiple RPC nodes concurrently and saves it as JSON files.
- 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.
- Golang
- Web3go (https://github.com/openweb3/web3go)
- Viper
-
Clone the repository:
git clone https://github.com/your-username/your-repository.git
-
Navigate to the project directory:
cd your-repository
-
Build the project:
go build
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
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.