diff --git a/index.html b/index.html
index eb954d7..3d788a1 100644
--- a/index.html
+++ b/index.html
@@ -169,6 +169,7 @@
return page;
},
blockPage(obj) {
+ debugger;
let {
blockHeight,
size,
@@ -176,23 +177,25 @@
reward,
hash,
difficulty,
- nonce,
+ nonce
} = obj,
page = document.createElement("div"),
wordForm = "transaction";
- if (transactions > 1) wordForm = "transactions";
+ if (transactions.length > 1) wordForm = "transactions";
page.classList.add("page");
page.id = "block_page";
page.innerHTML = `
-
1 ${wordForm}
-
${size}
+
+
Relavant Transactions
+ ${transactions.length}
+ Confirmations
+ ${size}
Reward
${reward}
- Transaction ID
+ Block Hash
${hash}
Difficulty
${difficulty}
@@ -334,8 +337,8 @@
${incAddress}
-
Top Balances
-
Top Transactions
+
Recent Balances
+
Recent Transactions
@@ -778,6 +781,7 @@
if (pageId === "block_page") {
let [blockInfo, blockTransactions] = await Promise.all([getBlockInfo(field), getBlockTransactions(field)])
+ debugger
pageContainer.append(create.blockPage(blockInfo));
pageTitle.textContent = "block";
loading()
@@ -1374,11 +1378,11 @@
async function getBlockInfo(thisBlock) {
const response = await fetch(`${tokenapiUrl}/api/v1.0/getBlockDetails/${thisBlock}`),
info = await response.json(),
- { height, size, reward, hash, difficulty, nonce } = info.blockDetails
+ { height, size, reward, hash, difficulty, nonce, tx } = info.blockDetails
return {
blockHeight: height,
size: size,
- transactions: "",
+ transactions: tx,
reward: reward,
hash: hash,
difficulty: difficulty,