get_current_subnet_pid

Function get_current_subnet_pid 

Source
pub async fn get_current_subnet_pid() -> Result<Option<Principal>, Error>
Expand description

Queries the NNS registry for the subnet that this canister belongs to.