Function: extractPaymentRequestDetails()
Split a PaymentRequest collection's 2 approvals into pay (has coinTransfer) and deny (no coinTransfer, matched by transferTimes window). Returns null if the…
extractPaymentRequestDetails(
approvals):PaymentRequestDetails|null
Defined in: packages/bitbadgesjs-sdk/src/core/payment-requests.ts:162
Split a PaymentRequest collection's 2 approvals into pay (has coinTransfer)
and deny (no coinTransfer, 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