Request information in the request_status state tree for a given canister. Can be used to request information about the canister's controllers, time, module hash, candid interface, and more.
CanisterStatusOptions
Principal
HttpAgent optional authenticated agent to use to make the canister request. Useful for accessing private metadata under icp:private
Optional
[]
object populated with data from the requested paths
const status = await canisterStatus({ paths: ['controllers', 'candid'], ...options});const controllers = status.get('controllers'); Copy
const status = await canisterStatus({ paths: ['controllers', 'candid'], ...options});const controllers = status.get('controllers');
Request information in the request_status state tree for a given canister. Can be used to request information about the canister's controllers, time, module hash, candid interface, and more.