./bitcoin-cli -rpcconnect=rpc.blockchain.info -rpcport=443 -rpcuser=[my identifier] -rpcpassword=[my password] getinfo
The message i got:
error: couldn't connect to server
If such a simple request, using the standard bitcoin-cli doesn't work, i seriously doubt there's something wrong with your script... I can only assume there is a problem with their api.
(BTW, got the same message when switching the port to 80, apparently -rpcssl is no longer supported)
Hi,
After some time trying to do the same and after googling and read the same you report i was giving up too, but i discovered a way of doing this:
You need to have NPM and NodeJS installed
$ npm install -g blockchain-wallet-service
$ npm update -g blockchain-wallet-service
$ blockchain-wallet-service start-rpc -k API_KEY -p 8000 -b 127.0.0.1 (The API_KEY you need to ask to blockchain.com, maybe you can try with your ID)
$ ./bitcoin-cli -rpcconnect=localhost -rpcport=8000 -rpcuser=wallet_id -rpcpassword=wallet_pasword getbalance
I used "getbalance" because "getinfo" connects but after give some error!
Not all the commands work, but the getbalance works fine with me.
It took me a couple of days, but VOILA