Skip to main content

find_prefix

Function find_prefix 

Source
pub fn find_prefix(
    ctx: &NeoStorageContext,
    prefix: &[u8],
) -> NeoResult<NeoIterator<NeoValue>>
Expand description

Finds all storage entries with the given prefix.

§Arguments

  • ctx - The storage context
  • prefix - The key prefix to search for

§Returns

  • Ok(NeoIterator<NeoValue>) containing matching entries
  • Err(NeoError) if the search fails