This library is the Python client for StakeShare node RPC Client
This is actually a beta version of StakeShare RPC API client.
pip install stakeshare-client>=0.1b4
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"
)
This method will get the balance of all your accounts:
balance = client.get_balance("*")
print("Current balance of all accounts is : %s" % ())
Coming soon