I seem to be having some trouble connecting Bitcoin core v0.17.0 with RPC
In the wallet configuration I have set the bitcoin.conf with the following.
server=1
rpcbind=127.0.0.1
rpcallowip=IP-OF-LOCAL-MACHINE
rpcport=8332
rpcuser=UserHere
rpcpassword=PasswordHere
rpcclienttimeout=30
rpcthreads=2
rpcworkqueue=1000
On checking I can see bitcoin listening on local host with
netstat --ip -lpa|grep bitcoin
tcp 0 0 localhost:8332 0.0.0.0:* LISTEN
In my connecting configuration I have set the connection to.
"btc": {
"paytxfee": .00001,
"config": {
"port": 8332,
"user": "UserHere",
"password": "PasswordHere"
}
},
The connecting module is running from bitcoin npm so it should pass to localhost as default.
But when I call the command for balance or deposit address to be called it fail's to return the address or the balance.
The commands are being read but the wallet fail's to respond and return the requested info.
bot> treating !deposit from --User-- as command
bot> treating !deposit from --User-- as command
Response:
BOT
Error getting your Bitcoin (BTC) deposit address.
Everything seems to be setup and running but for some reason the RPC won't pass the requested info back to the bot.
Thanks.