Library to communicate with bitvaluta daemon via JSON-RPC protocol.
Project description
bitvaluta_rpc
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 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()
Available Commands:
addmultisigaddress <nrequired> <'["key","key"]'> [account]
addnode <node> <add|remove|onetry>
addredeemscript <redeemScript> [account]
backupwallet <destination>
burn <amount> [hex string]
burnwallet [hex string] [force]
checkkernel [{"txid":txid,"vout":n},...] [createblocktemplate=false]
checkwallet
createrawtransaction [{"txid":txid,"vout":n},...] {address:amount,...}
decoderawtransaction <hex string>
decodescript <hex string>
dumpprivkey <bitvalutaaddress>
dumpwallet <filename>
getaccount <bitvalutaaddress>
getaccountaddress <account>
getaddednodeinfo <dns> [node]
getaddressesbyaccount <account>
getbalance [account] [minconf=1]
getbestblockhash
getblock <hash> [txinfo]
getblockbynumber <number> [txinfo]
getblockcount
getblockhash <index>
getblocktemplate [params]
getcheckpoint
getconnectioncount
getdifficulty
getinfo
getmininginfo
getnettotals
getnewaddress [account]
getnewpubkey [account]
getpeerinfo
getrawmempool
getrawtransaction <txid> [verbose=0]
getreceivedbyaccount <account> [minconf=1]
getreceivedbyaddress <bitvalutaaddress> [minconf=1]
getstakesubsidy <hex string>
getstakinginfo
getsubsidy [nTarget]
gettransaction <txid>
getwork [data]
getworkex [data, coinbase]
help [command]
importprivkey <bitvalutaprivkey> [label] [rescan=true]
importwallet <filename>
keypoolrefill [new-size]
listaccounts [minconf=1]
listaddressgroupings
listreceivedbyaccount [minconf=1] [includeempty=false]
listreceivedbyaddress [minconf=1] [includeempty=false]
listsinceblock [blockhash] [target-confirmations]
listtransactions [account] [count=10] [from=0]
listunspent [minconf=1] [maxconf=9999999] ["address",...]
makekeypair [prefix]
move <fromaccount> <toaccount> <amount> [minconf=1] [comment]
ping
repairwallet
resendtx
reservebalance [<reserve> [amount]]
sendalert <message> <privatekey> <minver> <maxver> <priority> <id> [cancelupto]
sendfrom <fromaccount> <tobitvalutaaddress> <amount> [minconf=1] [comment] [comment-to]
sendmany <fromaccount> {address:amount,...} [minconf=1] [comment]
sendrawtransaction <hex string>
sendtoaddress <bitvalutaaddress> <amount> [comment] [comment-to]
setaccount <bitvalutaaddress> <account>
settxfee <amount>
signmessage <bitvalutaaddress> <message>
signrawtransaction <hex string> [{"txid":txid,"vout":n,"scriptPubKey":hex,"redeemScript":hex},...] [<privatekey1>,...] [sighashtype="ALL"]
stop
submitblock <hex data> [optional-params-obj]
validateaddress <bitvalutaaddress>
validatepubkey <bitvalutapubkey>
verifymessage <bitvalutaaddress> <signature> <message>
walletlock
walletpassphrase <passphrase> <timeout> [stakingonly]
walletpassphrasechange <oldpassphrase> <newpassphrase>
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
Built Distribution
File details
Details for the file bitvaluta_rpc-1.31.tar.gz
.
File metadata
- Download URL: bitvaluta_rpc-1.31.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7a646f245e898799b59318a3d81bdf77c8fdec92aca8f5fef3263a1ca39f8bb |
|
MD5 | 04a2f56ea13d101ebd616f52d99917bf |
|
BLAKE2b-256 | ca969c822e1162f69d2515698a47cbda641f8f770033efc9b7525aca2b10e60c |
File details
Details for the file bitvaluta_rpc-1.31-py3-none-any.whl
.
File metadata
- Download URL: bitvaluta_rpc-1.31-py3-none-any.whl
- Upload date:
- Size: 7.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/46.1.3 requests-toolbelt/0.9.1 tqdm/4.45.0 CPython/3.7.7
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 85b25c5a9254fb605b64ac17ac6a0a0639b65feeb96895bc1406a22c84dafe25 |
|
MD5 | 998053e939f2e9f5a81ce5e304517700 |
|
BLAKE2b-256 | f3948ce787f2b8c2a904bbdecb38ee7224e7e6650196a52d4be4fc284f9611a5 |