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.
175 lines
5.8 KiB
175 lines
5.8 KiB
extends layout
|
|
|
|
block headContent
|
|
title Home
|
|
|
|
block content
|
|
if (getblockchaininfo == null)
|
|
div(class="alert alert-warning")
|
|
p.font-weight-bold Unable to get basic blockchain data
|
|
ul
|
|
li If you just started your node, it may still be initializing.
|
|
li If your node is already initialized, check your RPC connection info.
|
|
else
|
|
|
|
if (config.demoSite && session.hideHomepageBanner != "true")
|
|
div(class="alert alert-primary alert-dismissible shadow-sm mb-4", role="alert")
|
|
span
|
|
strong #{coinConfig.siteTitle}
|
|
span is
|
|
a(href="https://github.com/janoside/btc-rpc-explorer", target="_blank") open-source
|
|
span and easy to set up. It can communicate with your
|
|
a(href=coinConfig.nodeUrl, target="_blank") #{coinConfig.name} Full Node
|
|
span via RPC. See the
|
|
a(href="https://github.com/janoside/btc-rpc-explorer", target="_blank") project description
|
|
span for a list of features and instructions for running.
|
|
|
|
if (global.sourcecodeProjectMetadata)
|
|
div.mt-2
|
|
a(href="https://github.com/janoside/btc-rpc-explorer", class="btn btn-primary mr-3 mb-1")
|
|
i(class="fas fa-star mr-2")
|
|
span(class="mr-2") Star
|
|
span(class="badge bg-white text-dark") #{global.sourcecodeProjectMetadata.stargazers_count}
|
|
|
|
a(href="https://github.com/janoside/btc-rpc-explorer/fork", class="btn btn-primary mr-3 mb-1")
|
|
i(class="fas fa-code-branch mr-2")
|
|
span(class="mr-2") Fork
|
|
span(class="badge bg-white text-dark") #{global.sourcecodeProjectMetadata.forks_count}
|
|
|
|
if (!crawlerBot)
|
|
button.btn.btn-primary(type="button", class="btn btn-primary mb-1", data-toggle="modal", data-target="#exampleModalCenter")
|
|
i(class="fas fa-heart mr-2")
|
|
span Support Project
|
|
|
|
div.mt-2
|
|
a.mr-2(href="https://www.npmjs.com/package/btc-rpc-explorer" rel="nofollow" target="_blank")
|
|
img(src="https://camo.githubusercontent.com/a2a28dff9062102df7988314d014e68d4612bd83/68747470733a2f2f696d672e736869656c64732e696f2f6e706d2f762f6274632d7270632d6578706c6f7265722e7376673f7374796c653d666c6174" alt="npm version" data-canonical-src="https://img.shields.io/npm/v/btc-rpc-explorer.svg?style=flat" style="max-width:100%;")
|
|
|
|
a(href="https://npmcharts.com/compare/btc-rpc-explorer?minimal=true" rel="nofollow" target="_blank")
|
|
img(src="https://camo.githubusercontent.com/07914c9a0c2f22f7493952dc969c57164bb14f77/687474703a2f2f696d672e736869656c64732e696f2f6e706d2f646d2f6274632d7270632d6578706c6f7265722e7376673f7374796c653d666c6174" alt="NPM downloads" data-canonical-src="http://img.shields.io/npm/dm/btc-rpc-explorer.svg?style=flat" style="max-width:100%;")
|
|
|
|
|
|
|
|
a(href="/changeSetting?name=hideHomepageBanner&value=true", class="close", aria-label="Close", style="text-decoration: none;")
|
|
span(aria-hidden="true") ×
|
|
|
|
|
|
- var networkSummaryItemCount = 4;
|
|
|
|
if (getblockchaininfo.size_on_disk)
|
|
- networkSummaryItemCount++;
|
|
|
|
if (exchangeRates)
|
|
- networkSummaryItemCount++;
|
|
|
|
if (txStats)
|
|
- networkSummaryItemCount++;
|
|
|
|
- var networkSummaryColumnClass = "col-md-4";
|
|
if (networkSummaryItemCount > 6)
|
|
- networkSummaryColumnClass = "col-md-3";
|
|
|
|
|
|
div.row
|
|
- var summaryColCount = 8;
|
|
if (exchangeRates)
|
|
- summaryColCount = 9;
|
|
|
|
div.mb-3.pr-xxl-0(class=`col-xxl-${summaryColCount}`)
|
|
div.card.shadow-sm(style="height: 100%;")
|
|
div.card-body.px-2.px-sm-3
|
|
h3.h6 Network Summary
|
|
hr
|
|
|
|
include includes/index-network-summary.pug
|
|
|
|
div.mb-3(class=`col-xxl-${12 - summaryColCount}`)
|
|
div.card.shadow-sm(style="height: 100%;")
|
|
div.card-body.px-2.px-sm-3
|
|
h3.h6 Tools
|
|
hr
|
|
|
|
include includes/tools-card.pug
|
|
|
|
|
|
if (latestBlocks)
|
|
div.row.mb-3
|
|
div.col
|
|
div.card.shadow-sm
|
|
div.card-body.px-2.px-sm-3
|
|
div.row
|
|
div.col
|
|
h3.h6 Latest Blocks
|
|
|
|
div.col.text-right
|
|
a(href="/blocks") Browse blocks »
|
|
|
|
hr
|
|
|
|
- var blocks = latestBlocks;
|
|
- var blockOffset = 0;
|
|
|
|
include includes/blocks-list.pug
|
|
|
|
if (false)
|
|
div(class="card mb-4 shadow-sm")
|
|
div.card-header
|
|
div.row
|
|
div.col
|
|
h2(class="h6 mb-0") Latest Blocks
|
|
if (getblockchaininfo.initialblockdownload)
|
|
small (#{(getblockchaininfo.headers - getblockchaininfo.blocks).toLocaleString()} behind)
|
|
|
|
div.col
|
|
span(style="float: right;")
|
|
a(href="/blocks")
|
|
span Browse Blocks »
|
|
|
|
div.card-body
|
|
|
|
- var blocks = latestBlocks;
|
|
- var blockOffset = 0;
|
|
|
|
include includes/blocks-list.pug
|
|
|
|
|
|
if (txStats)
|
|
div.row.mb-3
|
|
div.col
|
|
div.card.shadow-sm
|
|
div.card-body.px-2.px-sm-3
|
|
div.row
|
|
div.col
|
|
h3.h6 Transaction Stats
|
|
|
|
div.col.text-right
|
|
a(href="/tx-stats") See more »
|
|
|
|
hr
|
|
|
|
div.row
|
|
div.col-lg-6
|
|
div.table-responsive
|
|
table.table.text-right.mb-4.mb-lg-0
|
|
thead
|
|
tr
|
|
th Period
|
|
th Transactions
|
|
th Transactions Per Sec
|
|
tbody
|
|
each item, index in chainTxStats
|
|
tr.text-monospace
|
|
td #{chainTxStatsLabels[index]}
|
|
td #{item.window_tx_count.toLocaleString()}
|
|
td #{new Decimal(item.txrate).toDecimalPlaces(4)}
|
|
|
|
|
|
div.col-lg-6
|
|
script var txRateDataDay = [];
|
|
each item, index in txStats.txCountStats.txRates
|
|
script txRateDataDay.push({x:#{item.x}, y:#{item.y}});
|
|
|
|
- var graphData = {id:"graphRateDay", dataVar:"txRateDataDay", labels:txStats.txCountStats.txLabels, title:"Tx Rate, 24hr", xaxisTitle:"Block", xaxisStep:5, yaxisTitle:"Tx Per Sec"};
|
|
include ./includes/line-graph.pug
|
|
|
|
|