Fetch candid from canister?

Hey, is it possible to fetch the candid file of a remote (running) canister A (different project) so I can import it somehow in my own motoko project and the appropriate actor for canister A will be generated with all the methods/types from the imported candid file in my project?

Thanks

You can either grab it from https://www.ic.rocks/ or call the __get_candid_interface_tmp_hack function yourself.

Feature request for dfx: a fetch/install command that downloads candid files for remote canisters and generates bindings.

2 Likes