EITRI

SDK for EITRI Blockchain


Keywords
blockchain, sdk, eitri
Install
pip install EITRI==1.9

Documentation

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