How to get the args of IC.install_code function?

I’m trying to create and install code for canister by using IC Interface functions, but I’m blocked by the following problem:

The code of IC.install_code function is as follows:

install_code : shared {
    arg : [Nat8];
    wasm_module : wasm_module;
    mode : { #reinstall; #upgrade; #install };
    canister_id : canister_id;
    } -> async ();

How can I get the arg and wasm_module?

Hey @C-B-Elite

The argument arg could be anything you want to pass to the module, and wasm_module is the content of your WASM file.

1 Like