Skip to content

lookupCanisterRangesFallback

lookupCanisterRangesFallback(subnetId, tree): Uint8Array

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

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

Principal

the subnet ID to lookup the canister ranges for

HashTree

the tree to search

Uint8Array

the encoded canister ranges. Use decodeCanisterRanges to decode them.

https://internetcomputer.org/docs/references/ic-interface-spec#http-read-state