Code Monkey home page Code Monkey logo

mev-boost-relay-bids-py's Introduction

Relay Bids Retrieval

This Python script allows you to retrieve relay bids metadata from various relays using the httpx library. The script fetches data for a range of block numbers and saves it in a Parquet file. It is designed to work with a virtual environment to manage dependencies.

Installation

To set up and run this script, follow these steps:

1. Clone the Repository

Clone this repository to your local machine:

git clone https://github.com/your-username/relay-bids-retrieval.git

2. Create a Virtual Environment

Navigate to the project directory and create a virtual environment:

cd relay-bids-retrieval python -m venv venv

Activate the virtual environment:

On macOS and Linux:

source venv/bin/activate

On Windows:

venv\Scripts\activate

3. Install Required Packages

Install the required packages listed in requirements.txt:

pip install -r requirements.txt

4. Configure the Script

Edit the RELAYS dictionary and other parameters within the main.py script to configure it according to your requirements. You can also specify the number of concurrent requests by setting the CONCURRENT_REQ variable.

5. Run the Script

Execute the main.py script with the following command, replacing from_block, to_block with your desired values:

python src/main.py from_block to_block

For example:

python main.py 100 200

This command will retrieve relay bids metadata for block numbers from 100 to 200 and save it to unique Parquet file per block_number in outputs folder.

Output

The script will log information about the progress and errors. It will save the retrieved data in Parquet format, splitting it into multiple files if the number of records exceeds a specified limit.

mev-boost-relay-bids-py's People

Contributors

fmosterts avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.