How to find out the controllers of a canister?

Hello all,

Wondering how i can find out the controller of the canisters ?

Or canisters controlled by a principle

Thank you

You can find out the controllers of a canister by searching for the canister at ICSCAN, or by using an agent, calling the readState API, and then parsing the values stored in a tree in the certificate. Agent JS has a CanisterStatus API to make this easy.

There is no way to find canisters controlled by a principal, however

1 Like

You can also search for the canister ID on the IC dashboard to see its controllers.

2 Likes

I’ll throw another one in the mix ; ) you can search any canister id here: https://k7gat-daaaa-aaaae-qaahq-cai.ic0.app

2 Likes

Best way to find the controller from your console is

dfx canister --network ic info