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)
Release files for infura 0.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| infura-0.2.1.tar.gz | 2.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| infura-0.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:6.0 kB
Release files / infura-0.2.1.tar.gz
| Download URL | infura-0.2.1.tar.gz |
|---|---|
| Size | 2.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1da113d85544137c4e9a6d0c2ab125478985c97a7cbd7217224018715f2e33a1
|
|
BLAKE2b-256 checksum How to use checksums |
f4037276c75a9982c5014542cb3785f19b2b2794da218604276ed4116f3b5ff3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / infura-0.2.1-py3-none-any.whl
| Download URL | infura-0.2.1-py3-none-any.whl |
|---|---|
| Size | 3.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
35e9a719406e987a4d35a133d807dfc9ce97b127dfa39378f65078a79700c26a
|
|
BLAKE2b-256 checksum How to use checksums |
eb15d0fb33cb907229366c5327da66a358eb35d6e936da17238c1bba36db0478
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|