Getting started

Requirements

Installation

To install NeoJsonRPC, please use pip (or pipenv) as follows:

$ pip install neojsonrpc

Basic usage

In order to interact with the NEO JSON-RPC interface, all you have to do is to initialize a neojsonrpc.Client instance and to call one of the JSON-RPC methods provided by the NEO nodes. For example you can get the block count of the NEO TestNet using:

>>> from neojsonrpc import Client
>>> testnet_client = Client.for_testnet()
>>> client.get_block_count()
973369