Skip to main content

No project description provided

Project description

hypersync-fuel-client-python

Python package for Envio's Hypersync-Fuel client written in Rust.

More information about Envio's Hypersync support of Fuel at https://github.com/enviodev/hypersync-fuel-docs

quickstart example

# This example will simply fetch the logs from the given contracts over a block range
# returns all log data necessary for fuel's decoder
import hypersync_fuel
import asyncio

async def main():
    client = hypersync_fuel.HypersyncClient()

    contracts = ["0xff63ad3cdb5fde197dfa2d248330d458bffe631bda65938aa7ab7e37efa561d0"]
    from_block = 8076516
    to_block = 8076517

    logs = await client.preset_query_get_logs(contracts, from_block, to_block)

    print("number of logs: " + str(len(logs.data)))
    print("logs: " + str(logs.data))

asyncio.run(main())

More examples in examples/

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

hypersync_fuel-0.1.2.tar.gz (40.8 kB view hashes)

Uploaded Source

Built Distributions

hypersync_fuel-0.1.2-cp312-none-win_amd64.whl (3.9 MB view hashes)

Uploaded CPython 3.12 Windows x86-64

hypersync_fuel-0.1.2-cp312-none-win32.whl (3.3 MB view hashes)

Uploaded CPython 3.12 Windows x86

hypersync_fuel-0.1.2-cp312-cp312-macosx_11_0_arm64.whl (4.4 MB view hashes)

Uploaded CPython 3.12 macOS 11.0+ ARM64

hypersync_fuel-0.1.2-cp312-cp312-macosx_10_12_x86_64.whl (4.7 MB view hashes)

Uploaded CPython 3.12 macOS 10.12+ x86-64

hypersync_fuel-0.1.2-cp311-none-win_amd64.whl (3.9 MB view hashes)

Uploaded CPython 3.11 Windows x86-64

hypersync_fuel-0.1.2-cp311-none-win32.whl (3.4 MB view hashes)

Uploaded CPython 3.11 Windows x86

hypersync_fuel-0.1.2-cp311-cp311-macosx_11_0_arm64.whl (4.4 MB view hashes)

Uploaded CPython 3.11 macOS 11.0+ ARM64

hypersync_fuel-0.1.2-cp311-cp311-macosx_10_12_x86_64.whl (4.7 MB view hashes)

Uploaded CPython 3.11 macOS 10.12+ x86-64

hypersync_fuel-0.1.2-cp310-none-win_amd64.whl (3.9 MB view hashes)

Uploaded CPython 3.10 Windows x86-64

hypersync_fuel-0.1.2-cp310-none-win32.whl (3.4 MB view hashes)

Uploaded CPython 3.10 Windows x86

hypersync_fuel-0.1.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (6.4 MB view hashes)

Uploaded CPython 3.10 manylinux: glibc 2.17+ x86-64

hypersync_fuel-0.1.2-cp310-cp310-macosx_11_0_arm64.whl (4.4 MB view hashes)

Uploaded CPython 3.10 macOS 11.0+ ARM64

hypersync_fuel-0.1.2-cp310-cp310-macosx_10_12_x86_64.whl (4.7 MB view hashes)

Uploaded CPython 3.10 macOS 10.12+ x86-64

hypersync_fuel-0.1.2-cp39-none-win_amd64.whl (3.9 MB view hashes)

Uploaded CPython 3.9 Windows x86-64

hypersync_fuel-0.1.2-cp39-none-win32.whl (3.4 MB view hashes)

Uploaded CPython 3.9 Windows x86

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