If you are running unpruned node consider running an Electrum server to support BIP148 (reddit.com)

Hi All! If you happen to be running unpruned node please consider running an Electrum server to support BIP148. This will ensure BIP148 has light client support post fork if there happens to be two chains. Electrum server requires additional 20GB on top of 120GB required by Bitcoin Core. It will take 1-2 days to sync on a HDD, probably faster on SSD. You will also need an open port for the light client to connect. If you are running Linux instructions are here:…


where do i place auth in a AJAX RPC server call

Getting a 401 on my AJAX ‘getinfo’ request to Coin rpc api I am running this script on chrome with cors security turned off

$  .ajax({   url: "http://" +  username + ":" + password +    "@",   type: 'POST',   contenType: 'application/json',   cache:false,   dataType:"json",   data: encodedData,   timeout: 15000  })  .done(function(msg){   alert(msg);   console.log(msg)  });  var encodedData = JSON.stringify ( {    "jsonrpc": "2.0",    "method": "getinfo",   "params": "",   "id": 1  } );  

this curl script hits the server and returns all info fine..

   curl --user username:password -d "{\"jsonrpc\": \"1.0\", \    "id\": 1, \"method\": \"getinfo\", \"params\": [] }" -i -X POST -H     "Content-Type: application/json" 



i have hidden the pass for this post and know for sure where username and password are written has the correct details Thanks for any help it would be much appreciated. leave bitcoin address for tips from me for anyone who unblocks me ๐Ÿ™‚

Recent Questions – Bitcoin Stack Exchange

bitcoin-cli – “error: couldn’t connect to server” –

I have bitcoind 0.13.1 running on a Raspberry Pi. I can see it on the bitcoin network using bitnodes.21.co but I can’t connect to it locally with bitcoin-cli.

My bitcoin.conf is:

rpcuser=xxx rpcpassword=xxx listen=1 server=1 dbcache=50 daemon=1 testnet=0 maxuploadtarget=200 

I tried:

curl --user xxx --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "getinfo", "params": [] }'

and I got:

curl: (7) Failed to connect to port 8332: Connection refused


sudo netstat -tulpn | grep bitcoin


tcp        0      0  *               LISTEN      620/bitcoind     tcp6       0      0 ::1:8332                :::*                    LISTEN      620/bitcoind     tcp6       0      0 :::8333                 :::*                    LISTEN      620/bitcoind' 

I had a crash a couple of days ago and had to recover wallet.dat from a backup. After the crash the time on the pi was an hour slow. I had to stop and start ntp to get it correct. I also did an apt-get update and upgrade after the crash. Until the crash this worked fine.

Finally I see that all the files in the dataDir are executable by everyone. The dataDir is on a USB stick that is mounted with:

/dev/sda1 /home/pi/bitcoinData vfat uid=pi,gid=pi,umask=0022,sync,auto,nosuid,rw,nouser 0 0

I am tempted to start over but would really like to understand why this has stopped working.

Recent Questions – Bitcoin Stack Exchange