rod mclaughlin


Yee-haw! (17 jan 18...21 jan 18)

curl --data-binary '{"jsonrpc":"1.0","method":"getblockchaininfo","params":[]}' http://NOT_MY_USERNAME:NOT_MY_PASSWORD@192.168.x.x:8332
{"result":
{"chain":"main","blocks":362325,"headers":504598,"bestblockhash":
"000000000000000007460de8f7fad1ca1894c3018232374812022cec327d545a","difficulty":
49692386354.89384,"mediantime":1435138482,"verificationprogress":0.2539725100623572,
"initialblockdownload":true,
"chainwork":
"00000000000000000000000000000000000000000007e5678a2948c712f75916",
"size_on_disk":44197602649,"pruned":false,
"softforks":[{"id":"bip34","version":2,"reject":{"status":true}},
{"id":"bip66","version":3,"reject":{"status":false}},
{"id":"bip65","version":4,"reject":{"status":false}}],
"bip9_softforks":{"csv":{"status":"defined","startTime":1462060800,"timeout":1493596800,"since":0},
"segwit":{"status":"defined","startTime":1479168000,"timeout":1510704000,"since":0}},
"warnings":"This is a pre-release test build - use at your own risk - do not use for mining or merchant applications"},
"error":null,"id":null}

Connecting to bitcoind from a remote machine on my network. Mostly thanks to Pete Corey
http://www.petecorey.com/blog/2017/09/04/controlling-a-bitcoin-node-with-elixir/
and quite a few other people - 'getinfo' has to be replaced with 'getblockchaininfo', and the bitcoin.conf file has to contain 
rpcuser=NOT_MY_USER_NAME
rpcpassword=NOT_MY_PASSWORD
gen=1
rpcallowip=127.0.0.1
rpcallowip=192.168.x.x 

The picture is of the results of implementing another Pete Corey project, 
https://steemit.com/bitcoin/@petecorey/exploring-the-bitcoin-blockchain-with-elixir-and-phoenix 



Back
Portland London