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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
bytes | Uint8Array |
options | { chainId: bigint; now?: number; piece: PieceLabels; pieceCid: Uint8Array; } |
options.chainId | bigint |
options.now? | number |
options.piece | PieceLabels |
options.pieceCid | Uint8Array |
Returns
Section titled “Returns”Throws
Section titled “Throws”With the reason the request is refused.