Skip to content
This repository has been archived by the owner on Feb 25, 2019. It is now read-only.

Latest commit

 

History

History
39 lines (27 loc) · 911 Bytes

getting_started.rst

File metadata and controls

39 lines (27 loc) · 911 Bytes

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