![](/_next/image?url=%2Fimages%2Fgradient-top-bg.png&w=1920&q=75)
return Ok(Vec::new()); }; let balances_buffer = balances.value(); let mut balances = Vec::new(); let mut i = 0; while i < balances_buffer.len() { let (id, length) = runes::varint::decode(&balances_buffer[i..]).unwrap(); i += length; let (amount, length) = runes::varint::decode(&balances_buffer[i..]).unwrap(); i += length; let id = RuneId::try_from(id).unwrap(); let entry = RuneEntry::load(id_to_rune_entries.get(id.store())?.unwrap().value()); balances.push(( entry.rune, Pile { amount, divisibility: entry.divisibility, symbol: entry.symbol, }, )); } Ok(balances) } #[cfg(test)] pub(crate) fn get_rune_balances(&self) -> Vec<(OutPoint, Vec<(RuneId, u128)>)> { let mut result = Vec::new(); for entry in self .database .begin_read() .unwrap() .open_table(OUTPOINT_TO_RUNE_BALANCES) .unwrap() .iter() .unwrap() { let (outpoint, balances_buffer) = entry.unwrap();
Inscription #44964619
Collection
Ord
Owner
bc1pdn7j3r...n30s9k4yv2ID
9b594f1dd0...0b09a120i0
Detail
History
Sign Up for our Newsletter
And be the first to know about any updates!