When I run btc-rpc-explorer in Terminal, everything seems to run fine:
btcexp:app Searching for config files... +0ms
btcexp:app Config file not found at /Users/me/.config/btc-rpc-explorer.env, continuing... +0ms
btcexp:app Config file not found at /etc/btc-rpc-explorer/.env, continuing... +0ms
btcexp:app Config file found at /Users/me/.env, loading... +0ms
btcexp:app Default cacheId '3.3.0' +498ms
btcexp:app Enabling view caching (performance will be improved but template edits will not be reflected) +12ms
btcexp:app Environment(development) - Node: v20.1.0, Platform: darwin, Versions: {"node":"20.1.0","acorn":"8.8.2","ada":"2.3.0","ares":"1.19.0","brotli":"1.0.9","cldr":"42.0","icu":"72.1","llhttp":"8.1.0","modules":"115","napi":"8","nghttp2":"1.52.0","openssl":"1.1.1t","simdutf":"3.2.8","tz":"2022e","undici":"5.22.0","unicode":"15.0","uv":"1.44.2","uvwasi":"0.0.16","v8":"11.3.244.8-node.6","zlib":"1.2.11"} +4ms
btcexp:app No sourcecode version available, continuing to use default cacheId '3.3.0' +0ms
btcexp:app Starting BTC RPC Explorer, v3.3.0 at
http://127.0.0.1:3002/ +0ms
btcexp:app Connecting to RPC node at 127.0.0.1:8332 +0ms
btcexp:app Verifying RPC connection... +3ms
btcexp:app Loading mining pools config +0ms
btcexp:app RPC Connected: version=220000 subversion=/Satoshi:22.0.0/, parsedVersion(used for RPC versioning)=22.0.0, protocolversion=70016, chain=main, services=[NETWORK, WITNESS, NETWORK_LIMITED] +12ms
btcexp:app Loading historical data for chain=main +0ms
btcexp:app Skipping performance-intensive task: fetch last 24 hrs of blockstats to calculate transaction volume. This is skipped due to the flag 'slowDeviceMode' which defaults to 'true' to protect slow nodes. Set this flag to 'false' to enjoy UTXO set summary details. +0ms
btcexp:app txindex check: trying getindexinfo +0ms
btcexp:app txindex check: getindexinfo={"txindex":{"synced":true,"best_block_height":792001}} +1ms
btcexp:app txindex check: available! +0ms
btcexp:app Skipping performance-intensive task: fetch UTXO set summary. This is skipped due to the flag 'slowDeviceMode' which defaults to 'true' to protect slow nodes. Set this flag to 'false' to enjoy UTXO set summary details. +1ms
...but when I go to the explorer in a browser at
http://127.0.0.1:3002, I get errors immediately in Terminal:
btcexp:error Error RpcError-002: Error: RpcError: type=errorResponse-03, json: {"userData":{"request":{"method":"estimatesmartfee","parameters":[1,"CONSERVATIVE"]}}}, userData: [object Object] (json: {"request":"estimatesmartfee([1,\"CONSERVATIVE\"])"}) +0ms
btcexp:errorVerbose Stack: Error: RpcError: type=errorResponse-03
btcexp:errorVerbose at Object.rpcCall (/opt/homebrew/lib/node_modules/btc-rpc-explorer/app/api/rpcApi.js:519:13)
btcexp:errorVerbose at process.processTicksAndRejections (node:internal/process/task_queues:95:5) +0ms
Error: RpcError: type=errorResponse-03
at Object.rpcCall (/opt/homebrew/lib/node_modules/btc-rpc-explorer/app/api/rpcApi.js:519:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
BitMaxz asked me to try changing BTCEXP_HOST=127.0.0.1 to 0.0.0.0
I tried that.
If I go to
http://0.0.0.0:3002 in a browser, Safari says it can't open the page because the address isn't valid.
If I go to
http://127.0.0.1:3002 in a browser, Safari says it can't connect to server 127.0.0.1, and Terminal kicks out the following error:
btcexp:error Error RpcError-002: Error: RpcError: type=errorResponse-03, json: {"userData":{"request":{"method":"estimatesmartfee","parameters":[1,"CONSERVATIVE"]}}}, userData: [object Object] (json: {"request":"estimatesmartfee([1,\"CONSERVATIVE\"])"}) +0ms
btcexp:errorVerbose Stack: Error: RpcError: type=errorResponse-03
btcexp:errorVerbose at Object.rpcCall (/opt/homebrew/lib/node_modules/btc-rpc-explorer/app/api/rpcApi.js:519:13)
btcexp:errorVerbose at process.processTicksAndRejections (node:internal/process/task_queues:95:5) +0ms
Error: RpcError: type=errorResponse-03
at Object.rpcCall (/opt/homebrew/lib/node_modules/btc-rpc-explorer/app/api/rpcApi.js:519:13)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)