Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
This repository was archived by the owner on May 6, 2023. It is now read-only.

peercoin/peercoin_rpc

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

106 Commits
106 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peercoin_rpc

License: MIT PyPI Code style: black

Peercoin_rpc is a simple and minimal library made for communication with peercoind via JSON-RPC protocol. It has a single dependency - a Python requests library and it supports both mainnet and testnet peercoin network with authentication or SSL encryption. There is a single class to be imported from the library - Client.

Client class methods are named the same as ppcoind RPC methods so learning curve is non-existant.

Install

pip install git+git://github.com/peercoin/peercoin_rpc.git

or

pip install peercoin_rpc

How to use

from peercoin_rpc import Client

Spawn a new Client object with desired arguments:

node = Client(testnet=True, username="username", password="password", ip=, port=)

Use it:

node.getblockchaininfo()

node.getpeerinfo()

node.getbalance()

About

Python JSON-RPC API wrapper for Peercoin.

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.