WIP
This guide will show you how to use this block explorer with Exonum-based blockchains.
- Rust compiler,
- Node.js,
- 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.
For the purpose of this example we are going to use a cryptocurrency built using Exonum.
- Get and run the cryptocurrency example:
git clone https://github.com/exonum/cryptocurrency.git
cd ./cryptocurrency
cargo run
- Go to the
./example
, - 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.
- Get and run the block explorer:
git clone https://github.com/nedap/exonum-block-explorer.git
cd ./exonum-block-explorer
npm install
npm start
- Navigate to
localhost:8080
, - IMPORTANT Enable CORS changer (see Prerequisites, item 3),
- Refresh the page you must be able to see recent blocks and recent transactions,
- Explore!
- IMPORTANT Do disable CORS changer after you finished exploring.
Vue 2.0, Vuetify
exonum-block-explorer is licensed under the MIT License. See LICENSE for details.