Skip to content

biotic21/bitcoincli

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

bitcoincli

CircleCI PyPI version

Description

Heavily based on python-bitcoinrpc and Savoir but replacing the httplib with requests.

Installation

git clone https://github.com/chainstack/bitcoincli

Usage

After cloning this repository, run:

python setup.py develop

Use the Bitcoin API documentacion and make calls to the wrapper.

Remember to replace the RPC variables with your Bitcoin node access credentials.

from bitcoincli import Bitcoin

host = "nd-123-456-789.p2pify.com"
port = "80"
username = "user-name"
password = "pass-word-pass-word-pass-word"

bitcoin = Bitcoin(username, password, host, port)

info = bitcoin.getblockchaininfo()
print(info)

About

A Python wrapper for Bitcoin JSON-RPC API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 86.8%
  • Makefile 13.2%