Function hdk::chain::query

source · []
pub fn query(filter: ChainQueryFilter) -> ExternResult<Vec<Element>>
Expand description

Walks the source chain in ascending order (oldest to latest) filtering by header and/or entry type

Given a header and entry type, returns an Vec<Element>

@todo document this better with examples after we make query do all the things we want. @todo implement cap grant/claim usage in terms of query @todo have ability to hash-bound query other agent’s chains based on agent activity @todo tie query into validation so we track dependencies e.g. validation packages @todo decide which direction we want to iterate in (paramaterise query?) @todo more expresivity generally?