Skip to content

lookupCanisterRanges

lookupCanisterRanges(params): Uint8Array

Defined in: packages/core/src/agent/certificate.ts:921

Lookup the canister ranges using the /canister_ranges/<subnet_id>/<ranges> path. Certificates returned by /api/v4/canister/<effective_canister_id>/call and /api/v3/canister/<effective_canister_id>/read_state use this path.

If the new lookup is not found, it tries the fallback lookup with lookupCanisterRangesFallback.

CheckCanisterRangesParams

the parameters with which to lookup the canister ranges

Uint8Array

the encoded canister ranges. Use decodeCanisterRanges to decode them.