####memorycoin-python
memorycoin-python is a set of python libraries that allows easy access to the memorycoin peer-to-peer cryptocurrency client API.
codebase originally derived from @laanwj/bitcoin-python. additionaly some modifications made for the portability of memorycoin.
####installation
$ [sudo] pip install memorycoin-python
or if you like 90s:
$ [sudo] easy_install memorycoin-python
####running the deamon
- run
bitcoind
from the memorycoin source. (src/bitcoind) follow the instructions about rpcuser and password.
example memorycoin.conf
rpcuser=changeme
rpcpassword=changemechangemechangemechangeme
rpcallowip=*
server=1
bind = 0.0.0.0
rpcport=17772
txindex=1
debugvote=1
####api
import memorycoinrpc
conn = memorycoinrpc.connect_to_local()
print "Your balance is %f" % (conn.getbalance(),)
# output: Your balance is 131.589260
print conn.getinfo()
# memorycoinrpc.data.ServerInfo(
# connections = 4,
# errors = u '',
# blocks = 7675,
# paytxfee = Decimal('0E-8'),
# keypoololdest = 1389617961,
# walletversion = 60000,
# difficulty = Decimal('0.00008961'),
# testnet = False,
# version = 85600,
# proxy = u '',
# protocolversion = 70001,
# timeoffset = 0,
# balance = Decimal('131.58925958'),
# keypoolsize = 101
# )
print conn.getdifficulty()
# output: 0.00008961
you can explore other methods over the bitcoin-python documentation.