Check_canister_ranges
check_canister_ranges(
params
):boolean
Defined in: packages/agent/src/certificate.ts:748
Check if a canister ID falls within the canister ranges of a given subnet
Parameters
Section titled “Parameters”params
Section titled “params”the parameters with which to check the canister ranges
canisterId
Section titled “canisterId”the canister ID to check
subnetId
Section titled “subnetId”the subnet ID from which to check the canister ranges
the hash tree in which to lookup the subnet’s canister ranges
Returns
Section titled “Returns”boolean
true
if the canister is in the range, false
otherwise