function · Browser and Node
checkTrailRef
Checks a trailRef {i, s, d} against a witness: fetches the entry, its receipts and the controller's KEL, and verifies them. Use httpWitnessClient inside a Trust Task handler, so the check doesn't await a TSP request.
@toip-tools/eventlogView sourceimport { checkTrailRef } from "@toip-tools/eventlog";
Declaration
checkTrailRef(ref: {
i: Qb64;
s: string | number;
d: Qb64;
}, witness: WitnessClient, opts?: VerifyOptions): Promise<TrailRefCheck>;
Parameters
witnessrequiredWitnessClientoptsoptionalVerifyOptionsDefault:
{}
Returns
Promise<TrailRefCheck>