|
Title: Total noob question Post by: DonnyBoy on November 10, 2019, 06:06:35 AM I'm looking to improve my computer skills to hopefully get myself out of the dead end job I'm trapped in. I thought learning about Bitcoin and programming would be a good way to do that. However I have noob issues already.
I am using Windows 10 and downloaded Bitcoin core. I was using bitcoin-qt to download the blockchain which is now complete. So in order to download the blockchain, bitcoind must have been running in the background. However, I'm not sure what to do from here to use bitcoin-cli? For example when I try to run the command 'getblockchaininfo' I get the error below. D:\Bitcoin\daemon>bitcoin-cli getblockchaininfo error: Could not connect to the server 127.0.0.1:8332 (error code 1 - "EOF reached") Make sure the bitcoind server is running and that you are connecting to the correct RPC port. If I run 'bitcoind', I get the below: D:\Bitcoin\daemon>bitcoind 'bitcoind' is not recognized as an internal or external command, operable program or batch file. Is there something really simple and obvious I am missing here? Thanks in advance for your help. Title: Re: Total noob question Post by: ranochigo on November 10, 2019, 06:10:44 AM Bitcoin-cli requires authentication from the user. To set the username and password, you need to set up a configuration file. To simplify the process, you can use this site[1] to generate the parameters.
While using Bitcoin-cli, you need the following arguments: -rpcuser= - rpcpassword= and -rpcport=. [1] https://jlopp.github.io/bitcoin-core-config-generator/ Title: Re: Total noob question Post by: nc50lc on November 10, 2019, 01:47:47 PM If I run 'bitcoind', I get the below: That error means that you've given the wrong call, it must be bitcoind.exe for Windows(10) machine.D:\Bitcoin\daemon>bitcoind 'bitcoind' is not recognized as an internal or external command, operable program or batch file. Is there something really simple and obvious I am missing here? Thanks in advance for your help. You can also just double-click the executable since you're on Windows :-\ But if the problem is in the RPC interface config: Try ranochigo's post above, but if it didn't work, put server=1 instead or together with it. You can read the config's description in the same resource link he provided under "RPC API" drop-down list. Title: Re: Total noob question Post by: DonnyBoy on November 10, 2019, 06:12:24 PM Thanks for the replies, but I think I am in over my head a bit. Not sure how to configure this file and with what username and password to use?
Also I don't have an executable for 'bitcoind', only one for bitcoin-ci, bitcoin-wallet and bitcoin-tx. Can anyone recommend any good books or guides on how I can get set up. Seem to be struggling a bit. Title: Re: Total noob question Post by: A-Bolt on November 10, 2019, 08:23:23 PM bitcoin-qt executable requires bitcoind to run. That's wrong. Bitcoin-qt is independent of bitcoind and can run without bitcoind.Also I don't have an executable for 'bitcoind', only one for bitcoin-ci, bitcoin-wallet and bitcoin-tx. It's strange, cause in Windows build (https://bitcoincore.org/bin/bitcoin-core-0.18.1/bitcoin-0.18.1-win64.zip (https://bitcoincore.org/bin/bitcoin-core-0.18.1/bitcoin-0.18.1-win64.zip)) bitcoind is present.Title: Re: Total noob question Post by: BitMaxz on November 10, 2019, 10:02:25 PM Are you sure about the installation directory?
If you install the bitcoin core to drive c:/ and your Windows 10 is 64bit you maybe install a 32bit version of bitcoin core Look at this command sample below make sure you are in the right path. Code: cd C:\Program Files (x86)\Bitcoin\daemon>bitcoind Code: cd D:\Bitcoin\daemon>bitcoind Don't forget to add the cd command at the beginning. If still doesn't work try the optional way to run bitcoind follow the guide from here https://bitcoin.org/en/full-node#windows-10 Title: Re: Total noob question Post by: nc50lc on November 11, 2019, 04:08:35 AM Thanks for the replies, but I think I am in over my head a bit. Not sure how to configure this file and with what username and password to use? Your AV might have quarantined the executable(s)?Also I don't have an executable for 'bitcoind', only one for bitcoin-ci, bitcoin-wallet and bitcoin-tx. Just follow these simple steps (if you have an AV, put an exception for the bitcoin installation folder):
BTW if it didn't work, you should add server=1 in your bitcoin.conf like I said above. Go to (hold WIN+R; type %appdata%, open bitcoin folder) %appdata%/bitcoin, then create a new file named "bitcoin.conf" then edit it. Or just download the default/configured sample from the 2nd post and paste it there. bitcoin-qt executable requires bitcoind to run. That's wrong. Bitcoin-qt is independent of bitcoind and can run without bitcoind.but for bitcoin-cli, bitcoind should be running as well. Title: Re: Total noob question Post by: HCP on November 12, 2019, 10:22:25 PM Also I don't have an executable for 'bitcoind', only one for bitcoin-ci, bitcoin-wallet and bitcoin-tx. So, for some reason, OP is missing the bitcoind.exe file... Until that is rectified, they'll not be able to use bitcoin-cli.exe.I would suggest that easiest solution is to simply try reinstalling the latest version of Bitcoin Core (refer: https://bitcoincore.org/en/download/)... and then once the installer has completed, verify that it extracted bitcoind.exe to the D:\Bitcoin\daemon directory properly. |