Skip to main content

Library to communicate with bitvaluta daemon via JSON-RPC protocol.

Project description

bitvaluta_rpc

License: MIT PyPI Code style: black

Bitvaluta_rpc is a simple and minimal library made for communication with bitvalutad via JSON-RPC protocol. It has a single dependency - a Python requests library and it supports both mainnet and testnet bitvaluta 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 bitvalutad RPC methods so learning curve is non-existant.

Install

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

or

pip install bitvaluta_rpc

How to use

from bitvaluta_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()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bitvaluta_rpc-0.72.tar.gz (5.3 kB view hashes)

Uploaded Source

Built Distribution

bitvaluta_rpc-0.72-py3-none-any.whl (6.5 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page