Skip to main content

useGetAccountResources

Use this hook to fetch the resources that are available for an address.

const { data: accountResources, isLoading: accountResourcesLoading } = useGetAccountResources(address);

This example fetches all resources that are on this address.

Parameters

ParameterTypeDescription
address (optional)stringAddress of the account. Uses the connected account address if no address is given.
options (optional)objectAdditional options for the query (e.g., retry settings)

Return Value