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.

Source Distribution

infura-0.2.1.tar.gz (2.4 kB view details)

Uploaded Source

Built Distribution

infura-0.2.1-py3-none-any.whl (3.7 kB view details)

Uploaded Python 3

File details

Details for the file infura-0.2.1.tar.gz.

File metadata

  • Download URL: infura-0.2.1.tar.gz
  • Upload date:
  • Size: 2.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for infura-0.2.1.tar.gz
Algorithm Hash digest
SHA256 1da113d85544137c4e9a6d0c2ab125478985c97a7cbd7217224018715f2e33a1
MD5 4715a0e053d4d940bdfc91c26a666363
BLAKE2b-256 f4037276c75a9982c5014542cb3785f19b2b2794da218604276ed4116f3b5ff3

See more details on using hashes here.

File details

Details for the file infura-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: infura-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 3.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.20.1 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/3.7.0

File hashes

Hashes for infura-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 35e9a719406e987a4d35a133d807dfc9ce97b127dfa39378f65078a79700c26a
MD5 35c1783f1b98c243e34260c5bb26ba8a
BLAKE2b-256 eb15d0fb33cb907229366c5327da66a358eb35d6e936da17238c1bba36db0478

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page