Function hdk::hash_path::anchor::get_anchor[][src]

pub fn get_anchor(anchor_address: EntryHash) -> ExternResult<Option<Anchor>>

Attempt to get an anchor by its hash. Returns None if the hash doesn’t point to an anchor. We can’t do anything fancy like ensure the anchor if not exists because we only have a hash.