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

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

Uploaded Python 3

Supported by

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