Skip to content

CaelRowley/Tron-Blockchain-Explorer

 
 

Repository files navigation

block-chain-explorer

Prerequisites

Download and Unzip:

To Run:

Start tron-java node

  • ./gradlew build
  • ./gradlew run -Pwitness

Start elastic search

  • run .\elasticsearch in \elasticsearch-x.x.x\bin directory

Start cassandra

  • service cassandra start
  • cassandra -f
  • run cass.sh in cassandra directory

Navigate to block-chain-explorer directory

  • npm install
  • node ./index.js

To cleanup elasticsearch data:

  • curl -X DELETE 'http://localhost:9200/_all'

docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' container_name_or_id

docker run -p 50051:50051 -it tronnode /bin/bash -c 'cd build/libs; java -jar java-tron.jar'

install google protobuffer protoc --proto_path= --js_out=import_style=commonjs,binary:build/gen api/api.proto protoc --proto_path= --js_out=import_style=commonjs,binary:build/gen core/Tron.proto protoc --proto_path= --js_out=import_style=commonjs,binary:build/gen core/Contract.proto protoc --proto_path= --js_out=import_style=commonjs,binary:build/gen core/Discover.proto protoc --proto_path= --js_out=import_style=commonjs,binary:build/gen core/TronInventoryItems.proto protoc --proto_path= --js_out=import_style=commonjs,binary:build/gen google/api/annotations.proto

GRPC pb npm config set unsafe-perm true sudo npm install protoc-gen-grpc -g protoc-gen-grpc --js_out=import_style=commonjs,binary:./build --grpc_out=./build --proto_path= api/api.proto

elasticdump --input=./accounts.json --output=http://localhost:9200/accounts

About

Tron Blockchain Service Layer for TronEx

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%