How to determine whether a principal is a canister

How to determine whether the principal is a canister or an identity account

1 Like

“ and there is intentionally no mechanism to tell canister ids and user ids apart”


How to get canisters code

you can not get the canister code,but you can get the candid on through the canisterId

How to get the interfaces of canisters

If it’s a Motoko canister you can search by canister id here to get the interface:

If it’s not available there you check the project GitHub repo or contact the developer (maybe also ask them to serve the candid from their canister or create a listing above).

1 Like

the dfinity UI candid canister also work,just put the canister ID and you will get the candid