diff --git a/src/routes/block/[hash]/+page.svelte b/src/routes/block/[hash]/+page.svelte index 1a43715..f113ba5 100644 --- a/src/routes/block/[hash]/+page.svelte +++ b/src/routes/block/[hash]/+page.svelte @@ -1,88 +1,299 @@ Block {block.height} - Triangles Explorer + - -
-
-

Block {block.height}

-

{block.hash}

+ +
+
+
+
+

Block #{formatNumber(block.height)}

+ + {blockType(block.flags)} + +
+

+ {blockAge} • {blockDate} +

+
+
+ {#if block.previousblockhash} + + + + + {/if} + {#if block.nextblockhash} + + + + + {/if} +
-
- {#if block.previousblockhash} - ← Prev - {/if} - {#if block.nextblockhash} - Next → - {/if} + + +
+
Block Hash
+
{block.hash}
- -
-
-

Block Details

+ +
+
+
Confirmations
+
{formatNumber(block.confirmations)}
-
- {#each fields as [label, value]} -
- {label} -
{value}
+
+
Transactions
+
{txCount}
+
+
+
Block Reward
+
{formatAmount(blockReward)} TRI
+
+
+
Size
+
{formatNumber(block.size || 0)} bytes
+
+
+ + +
+ +
+ +
+
+

Block Information

- {/each} +
+
+
Height
+
{formatNumber(block.height)}
+
+
+
Timestamp
+
{blockDate}
+
{blockAge}
+
+
+
Received Time
+
{block.time}
+
+
+
Block Type
+
+ + {blockType(block.flags)} + + {#if isPoS} + (Stake Proof) + {:else if isPoW} + (Work Proof) + {/if} +
+
+
+
Difficulty
+
{formatDifficulty(block.difficulty)}
+
+
+
Block Reward
+
{formatAmount(blockReward)} TRI
+
+
+
+ + +
+
+

Technical Details

+
+
+
+
Version
+
{block.version}
+
+
+
Size
+
{formatNumber(block.size || 0)} bytes
+
+
+
Nonce
+
{block.nonce}
+
+
+
Bits
+
{block.bits}
+
+ {#if block.blocktrust} +
+
Block Trust
+
{block.blocktrust}
+
+ {/if} + {#if block.chaintrust} +
+
Chain Trust
+
{block.chaintrust}
+
+ {/if} +
+
+
+ + +
+ +
+
+

Cryptographic Hashes

+
+
+
+
Merkle Root
+
{block.merkleroot}
+
+
+
Previous Block
+ {#if block.previousblockhash} + + {block.previousblockhash} + + {:else} + Genesis Block + {/if} +
+
+
Next Block
+ {#if block.nextblockhash} + + {block.nextblockhash} + + {:else} + Latest Block + {/if} +
+
+
+ + + {#if isPoS} +
+
+

+ + Proof-of-Stake Details +

+
+
+ {#if block.proofhash} +
+
Proof Hash
+
{block.proofhash}
+
+ {/if} + {#if block.modifier} +
+
Stake Modifier
+
{block.modifier}
+
+ {/if} + {#if block.modifierchecksum} +
+
Modifier Checksum
+
{block.modifierchecksum}
+
+ {/if} + {#if block.entropybit !== undefined} +
+
Entropy Bit
+
{block.entropybit}
+
+ {/if} + {#if block.signature} +
+
Block Signature
+
{block.signature}
+
+ {/if} +
+
+ {/if} + + +
+
+

Flags

+
+
+
{block.flags}
+
+
{#if addresses.length > 0} -
-
-

Addresses Involved ({addresses.length})

-
-
-
- {#each addresses as addr} - - {addr} - - {/each} +
+
+

Addresses Involved ({addresses.length})

+
+
+
+ {#each addresses as addr} + + {addr} + + {/each} +
-
{/if}
-

Transactions ({block.tx.length})

+

Transactions ({txCount})

- + {#if data.txs && data.txs.length > 0} + + {:else} +
+

Transaction data loading...

+
+ {/if}