useAccountsForAddress
Get all accounts associated with the provided address
function useAccountsForAddress(
contract: RequiredParam<SmartContract<BaseContract>>,
address: RequiredParam<string>,
): UseQueryResult<string[]>;
Parameters
Returns
a response object that includes an array of all accounts associated with the adress
type ReturnType = UseQueryResult<string[]>;
Example
const {
data: accountsForAddress,
isLoading,
error,
} = useAccountsForAddress(contract, "{{account_address}}");