Function: readVerifier()
readVerifier(
url:string,messageId:BytesLike,opts: {getAddress?: (address:BytesLike) =>string;signal?:AbortSignal;transport:VerifierTransport; }):Promise<VerifierResult[]>
Defined in: verifiers/index.ts:37
Read a message's CCV attestations from one verifier endpoint.
Each result is attributed to the destination CCV named by its verifier_dest_address metadata;
a result without that hint, or without ccv_data, is dropped, since there is no telling which
destination CCV it would satisfy.
Parameters
| Parameter | Type | Description |
|---|---|---|
url | string | Endpoint URL, passed verbatim to the transport |
messageId | BytesLike | 32-byte message id |
opts | { getAddress?: (address: BytesLike) => string; signal?: AbortSignal; transport: VerifierTransport; } | transport to use; getAddress to render a raw dest CCV address in the destination family's format (default: hex); signal to cancel the call |
opts.getAddress? | (address: BytesLike) => string | - |
opts.signal? | AbortSignal | - |
opts.transport | VerifierTransport | - |
Returns
Promise<VerifierResult[]>
The attributable results, possibly empty (e.g. before the verifier reached quorum)
Throws
CCIPError from the transport, or when the verifier answers only with errors