toip.tools

function · Browser and Node

buildTrc

A receipt or endorsement of a trail message. Its signature covers its own dt.

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

Declaration

TypeScriptSignature
buildTrc(f: {
    logId: Qb64;
    s: number;
    said: Qb64;
    dt: string;
}): {
    raw: string;
    body: Record<string, unknown>;
};

Parameters

frequired
{ logId: Qb64; s: number; said: Qb64; dt: string; }

Returns

{ raw: string; body: Record<string, unknown>; }

Returned object

The returned object exposes these properties and methods.

Properties

rawrequired
string
bodyrequired
Record<string, unknown>