![](/_next/image?url=%2Fimages%2Fgradient-top-bg.png&w=1920&q=75)
&sequence_number_to_inscription_entry, *utxo, )?); } Ok(result) } pub(crate) fn get_inscriptions_paginated( &self, page_size: usize, page_index: usize, ) -> Result<(Vec<InscriptionId>, bool)> { let rtx = self.database.begin_read()?; let sequence_number_to_inscription_entry = rtx.open_table(SEQUENCE_NUMBER_TO_INSCRIPTION_ENTRY)?; let mut inscriptions = sequence_number_to_inscription_entry .iter()? .rev() .skip(page_size.saturating_mul(page_index)) .take(page_size.saturating_add(1)) .flat_map(|result| result.map(|(_number, entry)| InscriptionEntry::load(entry.value()).id)) .collect::<Vec<InscriptionId>>(); let more = inscriptions.len() > page_size; if more { inscriptions.pop(); } Ok((inscriptions, more)) } pub(crate) fn get_inscriptions_in_block(&self, block_height: u32) -> Result<Vec<InscriptionId>> { let rtx = self.database.begin_read()?; let height_to_last_sequence_number = rtx.open_table(HEIGHT_TO_LAST_SEQUENCE_NUMBER)?;
Inscription #44972082
Collection
Ord
Owner
bc1pdplkf6...sqcq52jsjdID
50b3426732...07b9a761i0
Detail
History
Sign Up for our Newsletter
And be the first to know about any updates!