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
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file mev_commit_sdk_py-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: mev_commit_sdk_py-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.12.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd57e8a77cd1779caee862c2403acb9dceb73a871ec1161bb3d373e8f06a26e2 |
|
MD5 | a8cad50521cdbf5d8d4d1eb0eba8e7cc |
|
BLAKE2b-256 | 39ec619a46af7e8d2fdd93a4b01eb606f07e401e763fe3b77ed361ac147114a0 |