Skip to content
GXChain explorer(GXChain区块链浏览器)
Branch: dev
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github/ISSUE_TEMPLATE chore: update bug report template Aug 30, 2018
build feat: add gscatter login entry in header Dec 10, 2018
config feat: show margin in trustnode info Jan 14, 2019
examples add example for ipfs Apr 26, 2018
server Merge branch 'master' into dev Mar 19, 2019
src feat: support virtual operation and contract params visualization Mar 19, 2019
static feat(UI): optimize home page ui Aug 9, 2018
.babelrc
.editorconfig support eslint:recommand rules Dec 11, 2017
.eslintignore
.eslintrc.json
.gitignore 代码风格以及规范统一~~ Dec 5, 2017
.postcssrc.js v1.0.0 添加UI模块 Aug 2, 2017
LICENSE
README.md change explorer name Jun 26, 2018
package-lock.json feat: support virtual operation and contract params visualization Mar 19, 2019
package.json
start-test.sh chore: update deploy script Dec 5, 2018
start.sh chore: update deploy script Dec 5, 2018

README.md

GXChain区块浏览器(GXChain Explorer)

GXChain区块浏览器是构建在公信链(GXChain)上的一个查询工具,提供区块(Block)查询,交易(Transaction)查询和账户(Account)查询功能

GXChain Explorer is a search tool build on GXChain, supporting block search, transaction search, and account search.

任何一方可以无偿使用此浏览器或进行二次开发, 但请注明项目来源:Powered by GXChain

Please keep our copyright "Powered by GXChain" if you want use it for free

Thanks shuang-guo for providing english translation

功能 Function

  • 区块同步 Block synchronization
  • 区块查询 Block search
  • 账户查询 Account search
  • 交易查询 Transaction search
  • 可视化 Visualization
  • 多语言(已添加中文、英文)Multi-language supported(Chinese and English)

环境依赖 System requirement

必要环境(Required): Node 6+

建议系统(Operation system): OSX、Linux

Node环境安装 Install under Node environment

建议使用NVM(Node Version Manager)进行安装: Recommend to use NVM(Node Version Manager)for installation:

curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.30.2/install.sh | bash
. ~/.nvm/nvm.sh
nvm install v6
nvm use v6

克隆项目 Clone project

git clone https://github.com/gxchain/gxbox.git

依赖安装 Install dependencies

调试模式依赖于babel-node, 在克隆的工程下执行以下命令安装依赖: Test mode depends on babel-node, execute the following commands to install dependencies under cloned engineering mode:

npm install -g babel-node
npm install

开发模式启动 Development mode start

npm start

生产环境启动 Production environment start

NODE_ENV=production node server-dist/index.js

或者使用pm2启动(else use pm2 to start)

NODE_ENV=production pm2 start server-dist/index.js --name gxb-explorer

API说明 API description

1. 根据区块高度获取区块信息 Acquire block information from block_height

/api/block/:block_height

2. 根据tx_id获取交易信息 Acquire transaction information from tx_id

/api/transaction/:tx_id

3. 根据账户id或账户名获取账户信息 Acquire account information from id or username

/api/account/:name_or_id

4. 根据账户id或账户名获取账户余额 Acquire balance information from id or username

/api/account_balance/:name_or_id

常见问题 FAQ

1. 提示GC Alert GC

区块太大可能导致内存不足, 可以修改BlocksyncTask.js中的sync_block_length,默认值为100(每次同步100个区块)

Block too big may cause insufficient memory, modify sync_block_length in BlocksyncTask.js,default is 100(synchronize 100 blocks everytime)

You can’t perform that action at this time.