function · Browser and Node
fetchTrail
For a watcher or explorer: a trail's stream, and the KEL, from one source.
@toip-tools/eventlogView sourceimport { fetchTrail } from "@toip-tools/eventlog";
Declaration
fetchTrail(trailId: Qb64, source: WitnessClient, opts?: TrailVerifyOptions): Promise<{
kel: KelResult;
trail: TrailResult;
} | undefined>;
Parameters
trailIdrequiredstringsourcerequiredWitnessClientoptsoptionalTrailVerifyOptionsDefault:
{}
Returns
Promise<{ kel: KelResult; trail: TrailResult; } | undefined>