Skip to main content

SDK for EITRI Blockchain

Project description

logo

EITRI.py

usage

$ pip install EITRI
from EITRI.eitri import eitri

if __name__ == "__main__":
  # eitri 노드 연결정보 전달
  e = eitri(
    ip = "127.0.0.1",
    port = "3000",
    user = "user",
    password = "password"
  )

  last_block = e.block.get_last_block()
  print(last_block)

  block = e.block.get_block(0)
  print(block)

  node = e.node.get_info()
  print(node)

  txhash = e.transaction.get_transaction('0x123')
  print(txhash)

  validators = e.validator.get_validators()
  print(validators)

development

  • test

test 코드를 실행하기 위해 test.py 실행

$ python test.py
  • deploy
$ ./publish.sh

배포하기 위해 setup.pyversion 변경

pip 배포

Similar libraries in other languages

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

EITRI-1.9-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file EITRI-1.9-py3-none-any.whl.

File metadata

  • Download URL: EITRI-1.9-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.3

File hashes

Hashes for EITRI-1.9-py3-none-any.whl
Algorithm Hash digest
SHA256 ae92e472b805bca90cd1ba8814ec35502b3793a0a71a69e1f0568cf23335d9fa
MD5 1880aacd86bc6403924bedcbc1919d5b
BLAKE2b-256 12f410fd37042243c91d1b3f6e4e612aec7e80fedfb9128c7da565f57061282d

See more details on using hashes here.

Supported by

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