Skip to main content

useGetAccountModules

Use this hook to fetch the Move modules that are publish on an address.

Usage

const { data: accountModules, isLoading: accountModulesLoading } = useGetAccountModules(address);

This example fetches all modules that are published on this address.

Parameters

ParameterTypeDescription
addressstringAddress of the account.

Return Value

  • moveModuleBytecode[]: A list of MoveModuleBytecode objects.