Skip to content

longnetwork/longcoin-explorer

Repository files navigation

LONG Block Explorer http://explorer.crypton.cf

Features

  • Browse blocks
  • View block details
  • View transaction details, with navigation "backward" via spent transaction outputs
  • View JSON content used to generate most pages
  • Search by transaction ID, block hash/height, and address
  • Optional transaction history for addresses by querying configurable ElectrumX servers
  • Mempool summary, with fee, size, and age breakdowns
  • RPC command browser and terminal
  • Supports Electrum Specific commands included in longcoin node

Prerequisites

Required options in the longcoin.conf:

txindex=1
addressindex=1
timestampindex=1
spentindex=1
maxmempool=300
dbcache=450
maxconnections=125
rpcuser=user
rpcpassword=password
rpcport=8878
rpcthreads=2
rpcworkqueue=1024

The recommended size of the VDS RAM is at least 4GB and the size of the swap file is at least 2GB !

Instructions for Installation

git clone https://github.com/longnetwork/longcoin-explorer.git
cd longcoin-explorer

sudo apt-get install redis

pip install git+https://chromium.googlesource.com/external/gyp

npm install

sudo npm install -g n
sudo n 9.11.2
sudo npm install -g forever

Instructions for Start

cd longcoin-explorer
export BTCEXP_IPSTACK_APIKEY="Your API KEY on https://ipstack.com/signup/free"
n use 9.11.2 ./bin/cli.js -i 127.0.0.1 -p 8080 -C LONG -H 127.0.0.1 -P 8878 -u user -w password -E standalone

See http://localhost:8080

Launch as a process (see start-rpcexplorer.sh)

cd longcoin-explorer
export BTCEXP_IPSTACK_APIKEY="Your API KEY on https://ipstack.com/signup/free"

export BTCEXP_REDIS_URL=redis://localhost:6379

export BTCEXP_OLD_SPACE_MAX_SIZE=384

export BTCEXP_RPC_CONCURRENCY=2
export BTCEXP_NO_INMEMORY_RPC_CACHE=true

forever start --id "rpcexplorer" \
-a -l ./rpcexplorer.log \
--minUptime 10000 --spinSleepTime 10000 \
-c "n use 9.11.2" --optimize_for_size --max-old-space-size=$BTCEXP_OLD_SPACE_MAX_SIZE \
./bin/cli.js --max-mem $BTCEXP_OLD_SPACE_MAX_SIZE -i 127.0.0.1 -p 8080 -C LONG -H 127.0.0.1 -P 8878 -u user -w password -E standalone

for control: forever list for stop: forever stop rpcexplorer
set -i option to your external IP, and $BTCEXP_OLD_SPACE_MAX_SIZE variable to control memory consumption

LONG development team collects donations to develop mobile wallet participating in blockchain consensus:

LONG: 1jAiYKH7yv7TWdumPNdgh6cZhuxbtGh43
ETH: 0x6e04282bb56Dd116d40785ebc3f336b4649A5bCb
BNB: 0x6e04282bb56Dd116d40785ebc3f336b4649A5bCb
DOGE: DEBQKxDukNTToE3YvbVMFRkHBxTnUrUrTP
LTC: LafMXhkxUp3GG1TM47GFRkmHmSGLDeCvzg
BTC: 19tAZLiVBPNVaGoxq8BTrwDqp3a41zG65b

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published