Skip to content

requestApproval

PQSafe AgentPay API Reference v0.1.0


PQSafe AgentPay API Reference / requestApproval

Function: requestApproval()

requestApproval(req): Promise<ApprovalResult>

Defined in: pqsafe/agent-pay/src/approval.ts:672

Request human approval for a payment across one or more channels. Sends all channels in parallel; first valid response wins (or quorum if threshold > 1).

Parameters

req

ApprovalRequest

Returns

Promise<ApprovalResult>

Throws

if threshold approvals are not met (more rejections than can be overcome)

Throws

if no response within timeoutSec