You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Running Bitcoin Core and running BTC RPC EXPLORER on a Mac. The explorer is working fine and works for all links except when clicking on a BLOCK HEIGHT, it gives - ERROR: blockHeight is not defined
Environment (please complete the following information):
Bitcoin Core / Node Version [28.0.0]
NodeJS Version [20.18.0]
Browser [Safari]
Code Version / Commit [3.4.0]
Installation Method [npm]
Configuration file content
Please include the content from the following files. BE SURE TO MODIFY YOUR CREDENTIALS BEFORE SUBMITTING!!!
bitcoin.conf
server=1
txindex=1
blockfilterindex=1
rpcuser=xxxxxx
rpcpassword=xxxxxx
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
Add a node IP address to connect to and attempt to keep the connection open. This option can be set multiple times.
addnode=h2vlpudzphzqxutd.onion
Bind to given address and always listen on it. (default: 0.0.0.0). Use [host]:port notation for IPv6. Append =onion to tag any incoming connections to that address and port as incoming Tor connections
bind=127.0.0.1:8333
Allow DNS lookups for -addnode, -seednode and -connect values.
dns=0
Query for peer addresses via DNS lookup, if low on addresses.
dnsseed=0
Use separate SOCKS5 proxy ip:port to reach peers via Tor hidden services.
onion=127.0.0.1:9050
Only connect to peers via Tor.
onlynet=onion
Connect through ip:port SOCKS5 proxy.
proxy=127.0.0.1:9050
Connect to a node (IP address) to retrieve peer addresses, then disconnect.
Your btc-rpc-explorer environment configuration (either $WORKING_DIR/.env or ~/.config/btc-rpc-explorer.env)
Optional logging settings, uncomment one of these example lines or add your own.
See comments after each for more info.
Default: "btcexp:app,btcexp:error"
#DEBUG=* # Enable all logging, including middleware
#DEBUG=btcexp:* # Enable all logging specific to btc-rpc-explorer
#DEBUG=btcexp:app,btcexp:error # Default
The base URL. If you want to run it elsewhere than on /, for example /btc-rpc-explorer/ - note that the value should include starting and ending "/"
Default: /
#BTCEXP_BASEURL=/
#BTCEXP_BASEURL=/explorer/
Whether your site will be served via HTTPS (impacts session cookies)
Note: if true, the express app will also have "trust proxy" set to 1, to help anyone running this tool behind a HTTPS reverse proxy
Default: false
#BTCEXP_SECURE_SITE=false
The active coin. Only officially supported value is "BTC".
btcexp:error Error ExpressUncaughtError: ReferenceError: blockHeight is not defined, json: {}, userData: [object Object] (json: {}) +0ms
btcexp:errorVerbose Stack: ReferenceError: blockHeight is not defined
btcexp:errorVerbose at /Users/johndoe/btc-rpc-explorer/routes/baseRouter.js:1116:70
btcexp:errorVerbose at process.processTicksAndRejections (node:internal/process/task_queues:95:5) +0ms
Additional context
Seems like the issue has appeared after running Bitcoin core on onion and i2p networks only. Before that on IPv4 and IPV6, it the block details were visible upon clicking on block height.
The text was updated successfully, but these errors were encountered:
Describe the bug
Running Bitcoin Core and running BTC RPC EXPLORER on a Mac. The explorer is working fine and works for all links except when clicking on a BLOCK HEIGHT, it gives - ERROR: blockHeight is not defined
Environment (please complete the following information):
Configuration file content
Please include the content from the following files. BE SURE TO MODIFY YOUR CREDENTIALS BEFORE SUBMITTING!!!
server=1
txindex=1
blockfilterindex=1
rpcuser=xxxxxx
rpcpassword=xxxxxx
rpcbind=127.0.0.1
rpcallowip=127.0.0.1
Add a node IP address to connect to and attempt to keep the connection open. This option can be set multiple times.
addnode=h2vlpudzphzqxutd.onion
Bind to given address and always listen on it. (default: 0.0.0.0). Use [host]:port notation for IPv6. Append =onion to tag any incoming connections to that address and port as incoming Tor connections
bind=127.0.0.1:8333
Allow DNS lookups for -addnode, -seednode and -connect values.
dns=0
Query for peer addresses via DNS lookup, if low on addresses.
dnsseed=0
Use separate SOCKS5 proxy ip:port to reach peers via Tor hidden services.
onion=127.0.0.1:9050
Only connect to peers via Tor.
onlynet=onion
Connect through ip:port SOCKS5 proxy.
proxy=127.0.0.1:9050
Connect to a node (IP address) to retrieve peer addresses, then disconnect.
seednode=hhiv5pnxenvbf4am.onion
debug=i2p
onlynet=i2p
i2psam=127.0.0.1:7656
i2pacceptincoming=1
$WORKING_DIR/.env
or~/.config/btc-rpc-explorer.env
)Optional logging settings, uncomment one of these example lines or add your own.
See comments after each for more info.
Default: "btcexp:app,btcexp:error"
#DEBUG=* # Enable all logging, including middleware
#DEBUG=btcexp:* # Enable all logging specific to btc-rpc-explorer
#DEBUG=btcexp:app,btcexp:error # Default
The base URL. If you want to run it elsewhere than on /, for example /btc-rpc-explorer/ - note that the value should include starting and ending "/"
Default: /
#BTCEXP_BASEURL=/
#BTCEXP_BASEURL=/explorer/
Whether your site will be served via HTTPS (impacts session cookies)
Note: if true, the express app will also have "trust proxy" set to 1, to help anyone running this tool behind a HTTPS reverse proxy
Default: false
#BTCEXP_SECURE_SITE=false
The active coin. Only officially supported value is "BTC".
Default: BTC
#BTCEXP_COIN=BTC
Host/Port to bind to
Defaults: shown
#BTCEXP_HOST=127.0.0.1
#BTCEXP_PORT=3002
Bitcoin RPC Credentials (URI -OR- HOST/PORT/USER/PASS)
Defaults:
- [host/port]: 127.0.0.1:8332
- [username/password]: none
- cookie: '~/.bitcoin/.cookie'
- timeout: 5000 (ms)
#BTCEXP_BITCOIND_URI=bitcoin://rpcusername:[email protected]:8332?timeout=10000
#BTCEXP_BITCOIND_HOST=127.0.0.1
#BTCEXP_BITCOIND_PORT=8332
#BTCEXP_BITCOIND_USER="xxxxxx"
#BTCEXP_BITCOIND_PASS="xxxxxx"
#BTCEXP_BITCOIND_COOKIE=/path/to/bitcoind/.cookie
#BTCEXP_BITCOIND_RPC_TIMEOUT=5000
Select optional "address API" to display address tx lists and balances
Options: electrum, electrumx, blockchain.com, blockchair.com, blockcypher.com
If this value is set to electrum (or the old value "electrumx"), then
BTCEXP_ELECTRUM_SERVERS must also be set
Default: none
#BTCEXP_ADDRESS_API=(electrum|electrumx|blockchain.com|blockchair.com|blockcypher.com)
Optional Electrum Protocol Servers. See BTCEXP_ADDRESS_API. This value is only
used if BTCEXP_ADDRESS_API=electrum (or the old value "electrumx")
This variable was formerly named BTCEXP_ELECTRUMX_SERVERS and that name still works.
Default: none
#BTCEXP_ELECTRUM_SERVERS=tls://electrumx.server.com:50002,tcp://127.0.0.1:50001,...
Whether to use the Electrum server as an external txindex.
This is only available in the Electrs implementation. Electrs txindex can serve as a
full replacement for the Bitcoin Core txindex, but Bitcoin Core's implementation
is likely faster.
#BTCEXP_ELECTRUM_TXINDEX=true
Set number of concurrent RPC requests. Should be lower than your node's "rpcworkqueue" value.
Note that Bitcoin Core's default rpcworkqueue=16.
Default: 10
#BTCEXP_RPC_CONCURRENCY=10
Disable app's in-memory RPC caching to reduce memory usage
Default: false (i.e. in-memory cache enabled)
#BTCEXP_NO_INMEMORY_RPC_CACHE=true
Optional redis server for RPC caching
Default: none
#BTCEXP_REDIS_URL=redis://localhost:6379
Default: hash of credentials
#BTCEXP_COOKIE_SECRET=0000aaaafffffgggggg
Whether public-demo aspects of the site are active
Default: false
#BTCEXP_DEMO=true
Set to false to enable resource-intensive features, including:
UTXO set summary querying
(default value is true, i.e. resource-intensive features are disabled)
#BTCEXP_SLOW_DEVICE_MODE=false
Privacy mode disables:
Exchange-rate queries, IP-geolocation queries
Default: false
#BTCEXP_PRIVACY_MODE=true
Don't request currency exchange rates
Default: true (i.e. no exchange-rate queries made)
#BTCEXP_NO_RATES=true
Password protection for site via basic auth (enter any username, only the password is checked)
Default: none
#BTCEXP_BASIC_AUTH_PASSWORD=mypassword
File where the SSO token is stored; ignored if BTCEXP_BASIC_AUTH_PASSWORD is provided.
Enables SSO if present.
Default: none
#BTCEXP_SSO_TOKEN_FILE=/var/run/btc-rpc-explorer/sso_token
URL of an optional external SSO provider
This is ignored if SSO is not enabled (see BTCEXP_SSO_TOKEN_FILE)
Default: none
#BTCEXP_SSO_LOGIN_REDIRECT_URL=/my-sso-provider/login
Enable to allow access to all RPC methods
Default: false
#BTCEXP_RPC_ALLOWALL=true
Custom RPC method blacklist
Default: (see config.js)
#BTCEXP_RPC_BLACKLIST=signrawtransaction,sendtoaddress,stop,...
Optional API keys
Default: none
#BTCEXP_GANALYTICS_TRACKING=UA-XXXX-X
#BTCEXP_SENTRY_URL=https://[email protected]/XXXX
#BTCEXP_IPSTACK_APIKEY=000000fffffaaaaa
#BTCEXP_MAPBOX_APIKEY=000000fffffaaaaa
Optional value for a directory for filesystem caching
Default: ./cache
#BTCEXP_FILESYSTEM_CACHE_DIR=./cache
Optional analytics
#BTCEXP_PLAUSIBLE_ANALYTICS_DOMAIN=domain.com
#BTCEXP_PLAUSIBLE_ANALYTICS_SCRIPT_URL=https://url-to/plausible.js
Optional value for "max_old_space_size"
Default: 1024
#BTCEXP_OLD_SPACE_MAX_SIZE=2048
The number of recent blocks to search for transactions when txindex is disabled
#BTCEXP_NOTXINDEX_SEARCH_DEPTH=3
Display Currency
Default: btc
#BTCEXP_DISPLAY_CURRENCY=(btc|sat|local)
Local Currency
Default: usd
#BTCEXP_LOCAL_CURRENCY=(usd|eur|...)
UI Timezone
Default: utc
#BTCEXP_UI_TIMEZONE=(utc|local)
UI Theme
Default: dark
#BTCEXP_UI_THEME=(dark|light)
UI Option: Hide info notes
Default: false
#BTCEXP_UI_HIDE_INFO_NOTES=(true|false)
Set the number of recent blocks shown on the homepage.
For slow devices reduce this number.
Default: 10
#BTCEXP_UI_HOME_PAGE_LATEST_BLOCKS_COUNT=10
Set the number of blocks per page on the browse-blocks page.
For slow devices reduce this number.
Default: 50
#BTCEXP_UI_BLOCKS_PAGE_BLOCK_COUNT=50
#########
Options designed for production use, on public instances like the one at BitcoinExplorer.org.
S3 details for uploading assets to be served via CloudFront
This is the optional profile name that the AWS SDK will use to load credentials. By default this refers to an item in ~/.aws/credentials
#AWS_PROFILE=xxx
The S3 bucket where assets will be uploaded on launch
#BTCEXP_S3_BUCKET=xxx
The region that the above S3 bucket exists
#BTCEXP_S3_BUCKET_REGION=xxx
The path in the above S3 bucket where assets will be uploaded on launch
#BTCEXP_S3_BUCKET_PATH=xxx/
CDN base url; if S3 details are given, this will probably be a CloudFront path for assets that are uploaded at launch
#BTCEXP_CDN_BASE_URL=xxx
To Reproduce
Steps to reproduce the behavior:
Screenshots or Log Output
btcexp:error Error ExpressUncaughtError: ReferenceError: blockHeight is not defined, json: {}, userData: [object Object] (json: {}) +0ms
btcexp:errorVerbose Stack: ReferenceError: blockHeight is not defined
btcexp:errorVerbose at /Users/johndoe/btc-rpc-explorer/routes/baseRouter.js:1116:70
btcexp:errorVerbose at process.processTicksAndRejections (node:internal/process/task_queues:95:5) +0ms
Additional context
Seems like the issue has appeared after running Bitcoin core on onion and i2p networks only. Before that on IPv4 and IPV6, it the block details were visible upon clicking on block height.
The text was updated successfully, but these errors were encountered: