Skip to main content

Infura.io wrapper

Project description

Infura.io API wrapper

An Infura.io API wrapper, for Python.

With a default cache supported by requests-cache

Installation

pip3 install infura

Usage

import infura

ifr = infura.Client(
    project_id='your-project-id',
    project_secret='your-project-secret',
    network='mainnet',
    cache_expire_after=5,
)

gas_price = ifr.eth_get_gas_price()

balance = ifr.eth_get_balance('0x39eB410144784010b84B076087B073889411F878')

block_number = ifr.eth_get_block_number()

block = ifr.eth_get_block_by_number(block_number, show_transaction_details: bool = False)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
infura-0.2.1-py3-none-any.whl (3.7 kB) Copy SHA256 hash SHA256 Wheel py3
infura-0.2.1.tar.gz (2.4 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page