toip.tools

function · Browser and Node

approve

Signs an approval of action under chain, valid from now for ttlSeconds.

@toip-tools/mandatesView source
TypeScriptImport
import { approve } from "@toip-tools/mandates";

Declaration

TypeScriptSignature
approve(approver: Identity, clock: Clock, o: {
    chain: Mandate[];
    action: Action;
    ttlSeconds: number;
}): Approval;

Parameters

approverrequired
Identity
clockrequired
Clock
orequired
{ chain: Mandate[]; action: Action; ttlSeconds: number; }

Returns