mirror of https://github.com/hyperledger/besu
An enterprise-grade Java-based, Apache 2.0 licensed Ethereum client https://wiki.hyperledger.org/display/besu
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
107 lines
3.4 KiB
107 lines
3.4 KiB
6 years ago
|
description: Ethereum Lite Explorer
|
||
6 years ago
|
<!--- END of page meta data -->
|
||
|
|
||
6 years ago
|
# Alethio Ethereum Lite Explorer
|
||
6 years ago
|
|
||
6 years ago
|
Use the [Alethio Ethereum Lite Explorer](https://lite-explorer.aleth.io/) to explore blockchain data
|
||
|
at the block, transaction, and account level.
|
||
6 years ago
|
|
||
6 years ago
|
The Alethio Ethereum Lite Explorer is a web application that connects to any Ethereum
|
||
|
JSON-RPC enabled node. No online server, hosting, or trusting third parties to display the blockchain
|
||
|
data is required.
|
||
6 years ago
|
|
||
|
!!! note
|
||
6 years ago
|
The Alethio Ethereum Lite Explorer is an [Alethio product](https://company.aleth.io/developers).
|
||
6 years ago
|
|
||
|
## Prerequisites
|
||
|
|
||
6 years ago
|
[Docker](https://docs.docker.com/install/) or [Node.js](https://nodejs.org/)
|
||
|
|
||
|
!!! tip
|
||
|
Using Docker is the easiest way to get started using the Ethereum Lite Explorer with Pantheon if you
|
||
|
do not have Node.js installed.
|
||
6 years ago
|
|
||
|
## Run Using Docker
|
||
|
|
||
6 years ago
|
To run the Ethereum Lite Explorer using the Docker image:
|
||
6 years ago
|
|
||
|
1. Start Pantheon with the [`--rpc-http-enabled`](../Reference/Pantheon-CLI-Syntax.md#rpc-http-enabled) option.
|
||
|
|
||
|
!!! example
|
||
|
|
||
|
To run Pantheon in development mode:
|
||
|
|
||
|
```bash
|
||
6 years ago
|
pantheon --network=dev --miner-enabled --miner-coinbase=0xfe3b557e8fb62b89f4916b721be55ceb828dbd73 --rpc-http-cors-origins="all" --host-whitelist=* --rpc-http-enabled --data-path=/tmp/tmpDatdir
|
||
6 years ago
|
```
|
||
|
|
||
6 years ago
|
1. Run the `alethio/ethereum-lite-explorer` Docker image specifying the JSON-RPC HTTP URL (`http://localhost:8545` in this example):
|
||
6 years ago
|
|
||
|
```bash
|
||
6 years ago
|
docker run --rm -p 8080:80 -e APP_NODE_URL=http://localhost:8545 alethio/ethereum-lite-explorer
|
||
6 years ago
|
```
|
||
|
|
||
6 years ago
|
1. Open [http://localhost:8080](http://localhost) in your browser to view the Lite Explorer.
|
||
|
|
||
|
![Ethereum Lite Explorer](explorer.png)
|
||
|
|
||
|
!!! note "Default HTTP port"
|
||
|
We are using port 8080 to run the Ethereum Lite Explorer so
|
||
|
the [Lite Network Monitor](Lite-Network-Monitor.md) can use port 80. You can then run
|
||
|
both at the same time.
|
||
6 years ago
|
|
||
6 years ago
|
## Install and Run with Node.js
|
||
6 years ago
|
|
||
6 years ago
|
1. Clone the `ethereum-lite-explorer` repository:
|
||
6 years ago
|
|
||
|
```bash
|
||
6 years ago
|
git clone https://github.com/Alethio/ethereum-lite-explorer.git
|
||
6 years ago
|
```
|
||
|
|
||
6 years ago
|
1. Change into the `ethereum-lite-explorer` directory:
|
||
6 years ago
|
```bash
|
||
6 years ago
|
cd ethereum-lite-explorer
|
||
6 years ago
|
```
|
||
|
|
||
|
1. Install npm packages:
|
||
|
|
||
|
```bash
|
||
|
npm install
|
||
|
```
|
||
|
|
||
6 years ago
|
1. Copy the sample config:
|
||
6 years ago
|
|
||
|
```bash
|
||
6 years ago
|
cp config.default.json config.dev.json
|
||
6 years ago
|
```
|
||
|
|
||
6 years ago
|
1. Update the `config.dev.json` file:
|
||
6 years ago
|
|
||
6 years ago
|
* Set `APP_NODE_URL` to the JSON-RPC HTTP URL of your node (`http://localhost:8545` in this example)
|
||
6 years ago
|
|
||
|
* Remove other environment variables.
|
||
|
|
||
|
1. In another terminal, start Pantheon with the [`--rpc-http-enabled`](../Reference/Pantheon-CLI-Syntax.md#rpc-http-enabled) option.
|
||
|
|
||
|
!!! example
|
||
|
|
||
|
To run Pantheon in development mode:
|
||
|
|
||
|
```bash
|
||
6 years ago
|
pantheon --network=dev --miner-enabled --miner-coinbase=0xfe3b557e8fb62b89f4916b721be55ceb828dbd73 --rpc-http-cors-origins="all" --host-whitelist=* --rpc-http-enabled --data-path=/tmp/tmpDatdir
|
||
6 years ago
|
```
|
||
|
|
||
6 years ago
|
1. In the `ethereum-lite-explorer` directory, run the Lite Explorer in development mode:
|
||
6 years ago
|
|
||
|
```bash
|
||
6 years ago
|
npm run build
|
||
|
npm run start
|
||
6 years ago
|
```
|
||
|
|
||
6 years ago
|
1. A browser window displays the Ethereum Lite Explorer (http://localhost:3000/).
|
||
6 years ago
|
|
||
|
## Lite Block Explorer Documentation
|
||
|
|
||
6 years ago
|
See the Ethereum Lite Explorer [GitHub repository](https://github.com/Alethio/ethereum-lite-explorer)
|
||
|
for more documentation, including details on deploying it.
|