confirmations: 0, difficulty: 0.0, hash: block_hash, height, median_time: None, merkle_root: TxMerkleNode::all_zeros(), n_tx: 0, next_block_hash: None, nonce: 0, previous_block_hash: None, time: 0, version: Version::ONE, version_hex: Some(vec![0, 0, 0, 0]), }) .unwrap(), ) } else { match self.state().blocks.get(&block_hash) { Some(block) => Ok(serde_json::to_value(hex::encode(serialize(&block.header))).unwrap()), None => Err(Self::not_found()), } } } fn get_block( &self, block_hash: BlockHash, verbosity: u64, ) -> Result<String, jsonrpc_core::Error> { assert_eq!(verbosity, 0, "Verbosity level {verbosity} is unsupported"); match self.state().blocks.get(&block_hash) { Some(block) => Ok(hex::encode(serialize(block))), None => Err(Self::not_found()), } } fn get_block_count(&self) -> Result<u64, jsonrpc_core::Error> {
Inscription number 44,990,257
Genesis block 819,071
File type text
File size 1.04 KB
Creation date Nov 30,2023 3:44 am