I have a problem with bitcoin node is that when I want to get out of the full node bitcoin server.

I ran this method and it does not work

curl \
  --user myusername \
  --data-binary '{"jsonrpc":"1.0", "id":"curltest", "method":"getnewaddress", "params":[]]' \
  -H 'content-type : text / plain; ' \
  http://ip server for node:8332/

Answer edited to add:

Error message

curl: (7) Couldn't connect to server

Config file

rpcallowip=ip exchange rpc
  • This question in my opinion is not clear, because your question show only the terminal command, you run the bitcoin node on your device? what is your bitcoind conf? – vincenzopalazzo Oct 20 at 9:45
  • 1
    What do you mean by "it does not work" - were there some error messages - if so what exactly. – RedGrittyBrick Oct 20 at 10:03
  • This is my config file for bitcoin erver=1 aemon=1 rpcallowip=ip exchange rpcallowip= rpcport=8332 rpcuser=xxx rpcpassword=xxxxxx wallet=/home/user/.bitcoin/wallets/coininx/wallet/dat walletdir=/home/user/.bitcoin/wallets/ – nick burcart Oct 20 at 13:38
  • and error messages : curl: (7) Couldn't connect to server – nick burcart Oct 20 at 13:39
  • Is bitcoind running? – Pieter Wuille Oct 20 at 15:26

If your bitcoin daemon isn't running because of a mistake in the configuration file then you won't be able to connect to that daemon.

If the daemon is started automatically, you should be able to check for error messages in the system log.

It should also be possible to start the daemon manually to see any error messages concerning the configuration file.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.