Skip to content
This repository has been archived by the owner on Jan 3, 2018. It is now read-only.

nedap/exonum-block-explorer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WIP

Generic Block Explorer for Exonum-based blockchains

This guide will show you how to use this block explorer with Exonum-based blockchains.

Prerequisites

  1. Rust compiler,
  2. Node.js,
  3. An extension for your web-browser allowing to change CORS headers. This is required because we are going to make cross-domain requests. As of version 0.3, Exonum has no built-in mechanisms to configure Cross-Origin policy. Yo may use, for example, Moesif Origin & CORS Changer for Chrome.

An Exonum-based blockchain application

For the purpose of this example we are going to use a cryptocurrency built using Exonum.

  1. Get and run the cryptocurrency example:
git clone https://github.com/exonum/cryptocurrency.git
cd ./cryptocurrency
cargo run
  1. Go to the ./example,
  2. Send some transactions to the server:
curl -H "Content-Type: application/json" -X POST -d @create-wallet-1.json http://127.0.0.1:8000/api/services/cryptocurrency/v1/wallets

curl -H "Content-Type: application/json" -X POST -d @create-wallet-2.json http://127.0.0.1:8000/api/services/cryptocurrency/v1/wallets

curl -H "Content-Type: application/json" -X POST -d @transfer-funds.json http://127.0.0.1:8000/api/services/cryptocurrency/v1/wallets/transfer

You might want to pause a little between sending the transactions for them to end up in different blocks.

Block explorer

  1. Get and run the block explorer:
git clone https://github.com/nedap/exonum-block-explorer.git
cd ./exonum-block-explorer
npm install
npm start
  1. Navigate to localhost:8080,
  2. IMPORTANT Enable CORS changer (see Prerequisites, item 3),
  3. Refresh the page you must be able to see recent blocks and recent transactions,
  4. Explore!
  5. IMPORTANT Do disable CORS changer after you finished exploring.

Tools used

Vue 2.0, Vuetify

License

exonum-block-explorer is licensed under the MIT License. See LICENSE for details.

About

Generic block-explorer for Exonum-based blockchains. Now maintained at https://github.com/quicky84/exonum-block-explorer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published