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.8.tar.gz (8.6 kB view details)

Uploaded Source

Built Distribution

mev_commit_sdk_py-0.1.8-py3-none-any.whl (7.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: mev_commit_sdk_py-0.1.8.tar.gz
  • Upload date:
  • Size: 8.6 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.8.tar.gz
Algorithm Hash digest
SHA256 b32afb1278f042fdf4f38505639b55ae049d869fcc66a5471f0757aa04696428
MD5 0fe8ea9ebca547c83d74ba8f7fb63ebb
BLAKE2b-256 dfc2dd6dfa7a142aa5d384e566681a70ce6727f6c4678a0ebb9670177bf66214

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for mev_commit_sdk_py-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 6c8fed3b6da37b623fa22342a0c74936b7c101dd342bd6ebad2d679bec805702
MD5 eb0db013b97404455338d5cfed147ebe
BLAKE2b-256 fd93e0828010a1dd726a45816bcc1833fed1999cec3dffe01eb6a64a4e02a038

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