Transaction b3f1d02e4909e48bf5bae159b49d17488f83df8fca644787a767462e30580a7c
1 Input
-
7fe2eab16b9ace8a4d9ab5bab94bea88335b181293f4f485566802a08c525f74:1
OP_DATA_32(32) 0037d8ea071245bce8d2e98bdc8ba1cf113fcf4a3c463b8186e0e2424a4cab35OP_CHECKSIG(172)OP_0(0)OP_IF(99)OP_DATA_3(3) ordOP_DATA_1(1)OP_DATA_24(24) text/plain;charset=utf-8OP_0(0)OP_PUSHDATA2(77) block: Block, height: Height, best_height: Height, inscriptions: Vec<InscriptionId>, ) -> Self { Self { hash: block.header.block_hash(), target: target_as_block_hash(block.header.target()), height: height.0, best_height: best_height.0, inscriptions, } } } impl PageContent for BlockHtml { fn title(&self) -> String { format!("Block {}", self.height) } } #[cfg(test)] mod tests { use super::*; #[test] fn html() { assert_regex_match!( BOP_PUSHDATA2(77) lockHtml::new( Chain::Mainnet.genesis_block(), Height(0), Height(0), 0, Vec::new() ), " <h1>Block 0</h1> <dl> <dt>hash</dt><dd class=monospace>[[:xdigit:]]{64}</dd> <dt>target</dt><dd class=monospace>[[:xdigit:]]{64}</dd> <dt>timestamp</dt><dd><time>2009-01-03 18:15:05 UTC</time></dd> <dt>size</dt><dd>285</dd> <dt>weight</dt><dd>1140</dd> </dl> .* prev nextOP_ENDIF(104)
1 Outputs
- b3f1d02e4909e48bf5bae159b49d17488f83df8fca644787a767462e30580a7c:0
value 546
address bc1pw7tn6e2ma3mxz5gzlq3psd73jfjw3ynnxtnz2u7rcqc0e0zq9t3sa7p3c6