added a function to search for an instruction in the ledger