Permalink
Browse files

Merge branch 'master' of https://github.com/Crypto-lyon/insacoin-rpc-…

  • Loading branch information...
darosior committed Nov 18, 2018
2 parents 279b6fb + 9994e8c commit f09386ca98812366bba342b76c4cf2f20a40c28a
Showing with 12 additions and 47 deletions.
  1. +9 −37 README.md
  2. +0 −7 app/api/rpcApi.js
  3. BIN app/coins/.isc.js.swo
  4. +3 −3 app/coins/isc.js
@@ -1,20 +1,6 @@
# INSACOIN RPC Explorer
A fork of the [Bitcoin network explorer](https://github.com/janoside/btc-rpc-explorer), by [janoside](https://github.com/janoside) adapted for insacoin.
Below is the original README of the project.


# BTC RPC Explorer

Simple, database-free Bitcoin blockchain explorer, via RPC. Built with Node.js, express, bootstrap-v4.

This tool is intended to be a simple, self-hosted explorer for the Bitcoin blockchain, driven by RPC calls to your own bitcoind node. This tool is easy to run but currently lacks features compared to database-backed explorers.

I built this tool because I wanted to use it myself. Whatever reasons one might have for running a full node (trustlessness, technical curiosity, supporting the network, etc) it's helpful to appreciate the "fullness" of your node. With this explorer, you can not only explore the blockchain (in the traditional sense of the term "explorer"), but also explore the functional capabilities of your own node.

Live demos are available at:

* BTC: https://btc.chaintools.io
* LTC: https://ltc.chaintools.io

# Features

@@ -30,39 +16,25 @@ Live demos are available at:

# Getting started

The below instructions are geared toward BTC, but can be adapted easily to other coins.

## Prerequisites

1. Install and run a full, archiving node - [instructions](https://bitcoin.org/en/full-node). Ensure that your bitcoin node has full transaction indexing enabled (`txindex=1`) and the RPC server enabled (`server=1`).
2. Synchronize your node with the Bitcoin network.
1. Install and run a full, archiving node. Ensure that your insacoin node has full transaction indexing enabled (`txindex=1`) and the RPC server enabled (`server=1`).
2. Synchronize your node with the Insacoin network.
3. "Recent" version of Node.js (8+ recommended).

## Instructions

1. Clone this repo: `git clone https://github.com/janoside/btc-rpc-explorer`
1. Clone this repo: `git clone https://github.com/Crypto-lyon/insacoin-rpc-explorer`
2. `npm install`
3. `npm run build`
4. Edit the "rpc" settings in [app/credentials.js](app/credentials.js) to target your node
5. Optional: Change the "coin" value in [app/config.js](app/config.js). Currently supported values are "BTC" and "LTC".
6. Optional: Add an ipstack.com API access key to [app/credentials.js](app/credentials.js). Doing so will add a map to the /peers page.
7. `npm start` to start the local server
8. Visit http://127.0.0.1:3002/

## Run via Docker

1. `docker build -t btc-rpc-explorer .`
2. `docker run -p 3002:3002 -it btc-rpc-explorer`

# Donate

Any support for continued development of this tool is appreciated!

* [Bitcoin](bitcoin:3NPGpNyLLmVKCEcuipBs7G4KpQJoJXjDGe): 3NPGpNyLLmVKCEcuipBs7G4KpQJoJXjDGe
5. Optional: Add an ipstack.com API access key to [app/credentials.js](app/credentials.js). Doing so will add a map to the /peers page.
6. `npm start` to start the local server
7. Visit http://127.0.0.1:3002/

![Bitcoin Donation QR Code](/public/img/qr-btc.png)
# Donate to janoside or us.

* [Litecoin](litecoin:ME4pXiXuWfEi1ANBDo9irUJVcZBhsTx14i): ME4pXiXuWfEi1ANBDo9irUJVcZBhsTx14i
* Janoside : [Bitcoin](bitcoin:3NPGpNyLLmVKCEcuipBs7G4KpQJoJXjDGe): 3NPGpNyLLmVKCEcuipBs7G4KpQJoJXjDGe

![Litecoin Donation QR Code](/public/img/qr-ltc.png)
* Us : [Bitcoin](bitcoin:1Jndmhuv1wAPtd2Nw1mmPaqQ7FwiNbQzSJ): 1Jndmhuv1wAPtd2Nw1mmPaqQ7FwiNbQzSJ

@@ -16,13 +16,6 @@ function getNetTotals() {
}

function getMempoolInfo() {
/*return new Promise(function(resolve, reject) {
getRpcData("getmempoolinfo").then((info) => {
resolve(info);
}).catch((err) => {
reject(err);
});
});*/
return new Promise(function(resolve, reject) {
resolve({
size: 0,
Binary file not shown.
@@ -68,7 +68,7 @@ module.exports = {
],
"vout":[
{
"value":"50.00000000",
"value":"42.00000000",
"n":0,
"scriptPubKey":{
"hex":"040184710fa689ad5023690c80f3a49c8f13f8d45b8c857fbcbc8bc4a8e4d3eb4b10f4d4604fa08dce601aaf0f470216fe1b51850b4acf21b179c45070ac7b03a9 OP_CHECKSIG",
@@ -84,7 +84,7 @@ module.exports = {
historicalData: [
{
type: "blockheight",
date: "2011-10-07",
date: "2018-10-15",
blockHeight: 0,
blockHash: "1952e403e8d57b1802ce37b7cc95a371a5627cc74b2b52794339e7cf4ca95ac7",
summary: "The insacoin genesis block.",
@@ -104,7 +104,7 @@ module.exports = {
}
},
blockRewardFunction:function(blockHeight) {
var eras = [ new Decimal8(50) ];
var eras = [ new Decimal8(42) ];
for (var i = 1; i < 34; i++) {
var previous = eras[i - 1];
eras.push(new Decimal8(previous).dividedBy(2));

0 comments on commit f09386c

Please sign in to comment.