Created
October 17, 2018 22:44
-
-
Save imylomylo/be68888807952c90a8fd3a970d5e2f2b to your computer and use it in GitHub Desktop.
Using peercoin_rpc
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo pip3 install peercoin_rpc | |
python3 | |
>>> from peercoin_rpc import Client | |
>>> kmdnode = Client(testnet=False, username="user793173901", password="pass07e8702e5982abfee0cf32381716717941bcde8c04dbda147818d26ee94f9737d4", ip="localhost", port="45453") | |
>>> kmdnode.getinfo() | |
{'version': 1001550, 'testnet': False, 'rpcport': 45453, 'connections': 3, 'errors': '', 'difficulty': 5103076.631849649, 'reward': 25600000000, 'relayfee': 1e-06, 'keypoololdest': 1538907055, 'paytxfee': 0.0, 'blocks': 36719, 'p2pport': 45452, 'halving': 77777, 'notarizedhash': '0000000000000000000000000000000000000000000000000000000000000000', 'KMDversion': '0.1.1', 'proxy': '', 'notarized': 0, 'balance': 0.0, 'notarizedtxid_height': 'mempool', 'notarizedtxid': '0000000000000000000000000000000000000000000000000000000000000000', 'notarized_confirms': 0, 'timeoffset': 0, 'tiptime': 1537796161, 'KMDnotarized_height': 0, 'longestchain': 36719, 'protocolversion': 170003, 'magic': 397860952, 'prevMoMheight': 0, 'keypoolsize': 101, 'name': 'PIRATE', 'walletversion': 60000} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment