Blockchain explorer
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.

31 lines
692 B

7 years ago
extends layout
block content
h3 Block
table
each key in Object.keys(block)
if (key === 'nextblockhash')
tr
td.capitalize #{key}
td
a(href=`/block/${block.nextblockhash}/`) #{block.nextblockhash}
-continue
if (key === 'previousblockhash')
tr
td.capitalize #{key}
td
a(href=`/block/${block.previousblockhash}/`) #{block.previousblockhash}
-continue
7 years ago
if (key === 'Transactions')
-continue
tr
td.capitalize #{key}
td #{block[key]}
h3 Transactions
each tx in block.Transactions
div
a(href=`/transaction/${tx.txid}/`) #{tx.txid}
7 years ago