Skip to content

mrmm/stakeshare-python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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

About

Python library RPC client for StakeShare

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages