How to call other module?

hello. I wanna use other modules.
I don’t know move language but I know solidity.

in solidity, I can use other contact like this

Interface(0xcafe).callFunction();

how can I use other modules in move?

1 Like

You can use other modules with the keyword use, by pointing to either the address or the alias (if defined) of the package. For example:

use alias::module_name;

You can then use a function from the module like this:

module_name::function_name();