stakeshare

StakeShare RPC client


License
Apache-2.0
Install
pip install stakeshare==0.1b0

Documentation

Description

This library is the Python client for StakeShare node RPC Client

Installation

This is actually a beta version of StakeShare RPC API client.

pip install stakeshare-client>=0.1b4

Usage

Create the client instance

You need to have your node up and running with a config file that have.

Note: To make sur all transactio nrelated methods works fine you need to run the daemon with argument -txindex=1.

rpcuser=<RPC_USERNAME>
rpcpass=<RPC_PASSWORD>
rpcport=5516
from client import StakeShareClient
import json
import sys

client = StakeShareClient(
    user="<RPC_USERNAME>",
    password="<RPC_PASSWORD>",
    host="http://localhost:5516"
)

Example

This method will get the balance of all your accounts:

balance = client.get_balance("*")
print("Current balance of all accounts is : %s" % ())

List of methods

Coming soon