bitpay / insight

A bitcoin blockchain explorer and API
https://insight.bitpay.com/
MIT License
1.19k stars 1.11k forks source link

Bitcoin Core JSON-RPC:port=8332: Connection Rejected: 403 Forbidden #929

Open Smurfy303 opened 6 years ago

Smurfy303 commented 6 years ago

I am using bitcoin-node-api module of nodejs for that I am running bitcored and start my server which runs fine. Syncing is also done 100%. But now problem is, When I am hitting API from site https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list it given me an error like -> Bitcoin Core JSON-RPC: host=35.232.207.144 port=8332: Connection Rejected: 403 Forbidden

My sever ip address is : 35.232.207.144.

& bitcoin.conf file is as below ,

    server=1 
    listen=1
    whitelist=127.0.0.1 
    rpcport=8332
    txindex=1 
    addressindex=1 
    timestampindex=1 
    spentindex=1 
    zmqpubrawtx=tcp://127.0.0.1:28332
    zmqpubhashblock=tcp://127.0.0.1:28332
    rpcallowip=35.232.207.144 
    rpcallowip=127.0.0.1 
   rpcbind=35.232.207.144 
   rpcuser=myuser 
   rpcpassword=mypass
  uacomment=bitcore

Error is like in command propmpt,

bitcoin-cli --livenet --host=35.232.207.144 --rpcuser=myuser --rpcpassword=mypass getinfo

Bitcoin Core JSON-RPC: host=35.232.207.144 port=8332: Connection Rejected: 403 Forbidden

I also tried in POSTMAN but gives me same error(403).

Can anybody tell me, how to hits api from server ?

zhousi666 commented 6 years ago

hi, all , can you tell me how to deploy bch-insight ? I need it . can you gave me a documents?