Closed rascal-3 closed 5 years ago
For some reason the bitcoin rpc expects a boolean value for the 2nd param in this request:
[{"jsonrpc": "2.0", "method": "getblock", "params": ["00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048", 2], "id": "1"}]
Try running this request with curl and pass true instead of 2 and see if it works. Are you sure it's a bitcoin node and not e.g. bitcoin cash?
@medvedev1088 Thanks for your replying.
I got this:
$ curl --user bitcoin --data-binary '{"jsonrpc": "2.0", "method": "getblock", "params": ["00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048", true], "id": "1"}' -H 'content-type: text/plain;' http://127.0.0.1:8332/
Enter host password for user 'bitcoin':
{"result":{"hash":"00000000839a8e6886ab5951d76f411475428afc90947ee320161bbf18eb6048","confirmations":573307,"size":215,"height":1,"version":1,"merkleroot":"0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098","tx":["0e3e2357e806b6cdb1f70b54c3a3a17b6714ee1f0e68bebb44a74b1efd512098"],"time":1231469665,"mediantime":1231469665,"nonce":2573394689,"bits":"1d00ffff","difficulty":1,"chainwork":"0000000000000000000000000000000000000000000000000000000200020002","previousblockhash":"000000000019d6689c085ae165831e934ff763ae46a2a6c172b3f1b60a8ce26f","nextblockhash":"000000006a625f06636b8bb6ac7b960a8d03705d1ace08b1a19da3fdcc99ddbd"},"error":null,"id":"1"}
According to the blockhash, it was Bitcoin Cash... I installed 4 full nodes(Ethereum, Bitcoin, Litecoin, Bitcoin Cash), but I might have overwritten btcfullnode by bchfullnode...
I'm gonna check these again.
Thanks for your help!!
Now I can extract data! Thanks a lot!!
Hi there,
Although I succeeded bittcoinetl get_block_range_for_date command, I got following errors and failed when I run bitcoinetl export_all command.
I use Ubuntu 18.04 LTS, Python version is 3.6.8, and I got result by running bitcoin-cli getblockchaininfo
ethreum-etl is working well, by the way...
Thank you,