Skip to main content
https://travis-ci.com/iRhonin/idena.py.svg?branch=main

This is Python wrapper for Idene Node.

Installation

Idena.py can be installed using pip as follows:

$ pip install idena

For the development, clone the repository then:

$ poetry install

Using Idena

This library depends on a connection to an Idena node and there are 2 ways to configure them.

Calling client.init

>>> from idena import client
>>> client.init('http://localhost:9009/', 'api-key')

Setting environment variables

Set IDENA_RPC_NODE and IDENA_API_KEY envars:

$ export IDENA_RPC_NODE=http://localhost:9009/
$ export IDENA_API_KEY=api-key

Getting Blockchain Info

>>> client.blockchain.get_last_block()

   Block(coinbase='0xbe854231db69ab042073b7ff8309ae3ee265a40f',
      hash='0xa88e6ab305d7ee311ad2de35338cdbf7e664d860709e5a53f0307baeeaa6f968',
      parentHash='0xe324a208892241e0294e5a6334965660375dda7a3ad8d8a42a5f3f2ef2857a22',
      height=2159398,
      timestamp=1606904853,
      root='0xd874709bdd4c6fcd95e2e531cc07a4ce42ab23334dfd12ceb45350535b36664c',
      identityRoot='0x9f3661f19e13d4860f2f2f1610abbbaf86abc8adf1a2781b371189e683745a97',
      ipfsCid=None,
      transactions=None,
      flags=['OfflinePropose'],
      isEmpty=False,
      offlineAddress='0x0df427ad7e1906ab4fcc5fd31118932256f5dc7a')

Release files for idena 0.2.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for idena 0.2.2
File Size Uploaded
idena-0.2.2.tar.gz 7.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for idena 0.2.2
File Interpreter ABI Platform
idena-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 16.9 kB

Release files / idena-0.2.2.tar.gz

Download URL idena-0.2.2.tar.gz
Size 7.9 kB
Tags Source
SHA-256 checksum
How to use checksums
50ededf77b93738e6aeb70aa6ec192a87bdca95933bdf5c09c41b59c2dbdc154
BLAKE2b-256 checksum
How to use checksums
49b21c6a42b167c33bd3e7fb5952ef6c63931a9a1555cf0d7383df0b94efefa6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.6.7 Linux/4.15.0-1077-gcp

Release files / idena-0.2.2-py3-none-any.whl

Download URL idena-0.2.2-py3-none-any.whl
Size 9.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
5373a250b277f90a149519149dfb06f953a624a05db2eebe06a7acb879b8435d
BLAKE2b-256 checksum
How to use checksums
87e8d47309d576a08ecc5696b7dec9e0350b9abaa5f87dff9e7abc7828787805
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.1.4 CPython/3.6.7 Linux/4.15.0-1077-gcp

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.0

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page