Skip to main content
Version: 1.13.1

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

ParameterTypeDescription
urlstringEndpoint URL, passed verbatim to the transport
messageIdBytesLike32-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.transportVerifierTransport-

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