# `getModulesPaginated`

Returns an array of modules. If all entries fit into a single page, the next pointer will be `0x1`. If another page is present, next will be the last element of the returned array.

## Usage


<Tabs items={['example.sol']}>
  <Tabs.Tab>
    ```solidity
    interface ISafe {
        function getModulesPaginated(
            address start,
            uint256 pageSize
        ) external view returns (address[] array, address next);
    }

    contract Example {
        function example() … {
            (ISafe safe).getModulesPaginated(0x..., 1);
        }
    }
    ```
  </Tabs.Tab>
</Tabs>


## Returns

### `array`

- **Type:** `address[]`

Array of modules.

### `next`

- **Type:** `address`

Start of the next page.

## Parameters

### `start`

- **Type:** `address`

Start of the page. Has to be a module or start pointer (`0x1` address).

```solidity focus=2
(ISafe safe).getModulesPaginated(
    0x...,
    1
);
```

### `pageSize`

- **Type:** `uint256`

Maximum number of modules that should be returned. Has to be greater than zero.

```solidity focus=3
(ISafe safe).getModulesPaginated(
    0x...,
    1
);
```
