Skip to content

verifyPresentation

verifyPresentation(bytes, options): Promise<VerifiedClaim>

Defined in: claims.ts:376

What a gating provider checks on a request, with only the header and the piece’s labels: the chain, the request’s piece, lifetime and signer, and that the final node reaches the piece. A piece without foc/own is not gated.

ParameterType
bytesUint8Array
options{ chainId: bigint; now?: number; piece: PieceLabels; pieceCid: Uint8Array; }
options.chainIdbigint
options.now?number
options.piecePieceLabels
options.pieceCidUint8Array

Promise<VerifiedClaim>

With the reason the request is refused.