Skip to main content

mev-commit python sdk for on-chain data retrieval for mev-commit chain

Project description

mev-commit-sdk-py

Introduction

This is a python based SDK to grab data from mev-commit chain, specifically logs and events. You can use this endpoint to lookup data mev-commit.rpc.hypersync.xyz. There is currently support for both cryo and hypersync tools.

Installation

There are two ways to install. The first way uses pypi pip install mev-commit-sdk-py.

The second way is to clone the repository and install the dependencies. The second method is required to use cryo using Rye. Since cryo doesn't support milisecond timestamps, version 0.3.2 was forked and modified to support milisecond timestamps and a local wheel comes with the repository for installation. Note that you will have to uncomment the pyproject.toml cryo dependency to install the modified version.

This library uses rye as the project manager. First install rye. Then clone the repository and run rye sync to install the dependencies and get setup. Current Python version is 3.10.12. Once installed, add a .env file with the variable RPC='endpoint' where endpoint is the url of the rpc server you want to connect to, this is for cryo.

The hypersync endpoint is https://mev-commit.hypersync.xyz and currently is not passed in as an .env variable

Usage

There are various things you can do with the SDK.

Get Window Deposits

python examples/cryo/get_windows.py gets all old windows that still have funds in them. Then take the list of windows generated and use the withdraw funds command to withdraw from all of the windows.

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

mev_commit_sdk_py-0.1.7.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

mev_commit_sdk_py-0.1.7-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file mev_commit_sdk_py-0.1.7.tar.gz.

File metadata

  • Download URL: mev_commit_sdk_py-0.1.7.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.2

File hashes

Hashes for mev_commit_sdk_py-0.1.7.tar.gz
Algorithm Hash digest
SHA256 00eb1a83d2071be5036f519ab2888ab6b366526a83cf6e8260e6727dd1ccf3d2
MD5 4b3f2dafc8c027845f0bb59638d96289
BLAKE2b-256 0a84daa30e9d1e105aadc68e3fc25d4680a68cfaaea0c3daa3376733761c0de0

See more details on using hashes here.

File details

Details for the file mev_commit_sdk_py-0.1.7-py3-none-any.whl.

File metadata

File hashes

Hashes for mev_commit_sdk_py-0.1.7-py3-none-any.whl
Algorithm Hash digest
SHA256 f917327c747be64181d3c064bade48959edf5e06e7e93685142f08e5fd5f306e
MD5 956e869c2f866236f0e45ddec7c0e4dc
BLAKE2b-256 d1b9aa55238bcb7d25ac3bfc188e4a7a8ec9bf0081a804ed0d2203162ca6f94a

See more details on using hashes here.

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