toip.tools

function · Browser and Node

exportBundle

Everything needed to verify an AID's logs offline: KEL (all versions, so recoveries show), trails with receipts and endorsements, the disclosed bodies, and DID bindings. bodies takes body SAIDs, or entry numbers per trail.

@toip-tools/eventlogView source
TypeScriptImport
import { exportBundle } from "@toip-tools/eventlog";

Declaration

TypeScriptSignature
exportBundle(store: LogStore, aid: Qb64, opts?: {
    trails?: Qb64[];
    bodies?: "all" | "none" | Qb64[];
    entries?: Record<Qb64, number[]>;
}): Promise<Bundle>;

Parameters

storerequired
LogStore
aidrequired
string
optsoptional
{ trails?: Qb64[]; bodies?: "all" | "none" | Qb64[]; entries?: Record<Qb64, number[]>; }

Default: {}

Fields of opts
trailsoptional
string[] | undefined
bodiesoptional
"all" | "none" | string[] | undefined
entriesoptional
Record<string, number[]> | undefined

Returns

Promise<Bundle>