Skip to main content

useGetAccountModule

Use this hook to fetch the Move module that is published on an address by name.

Usage

const { data: accountModule, isLoading: accountModuleLoading } = useGetAccountModule(address, moduleNam e);

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

Parameters

ParameterTypeDescription
addressstringAddress of the account.
moduleNamestringName of the module

Return Value

  • moveModuleBytecode: A MoveModuleBytecode object.