Function: extractPaymentRequestDetails()
Split a PaymentRequest collection's approvals into pay (has coinTransfer) and optional deny (specific payer only, matched by transferTimes window). Returns…
extractPaymentRequestDetails(
approvals):PaymentRequestDetails|null
Defined in: packages/bitbadgesjs-sdk/src/core/payment-requests.ts:174
Split a PaymentRequest collection's approvals into pay (has coinTransfer)
and optional deny (specific payer only, matched by transferTimes window). Returns null
if the shape doesn't match — caller should treat that as a non-conformant
collection (same outcome as validatePaymentRequestCollection failing).
Parameters
approvals
readonly iCollectionApproval<bigint>[]
Returns
PaymentRequestDetails | null