# `getModuleTransactions`

Returns the history of module transactions of a Safe account.

## Usage


<Tabs items={['example.ts', 'setup.ts']}>
  <Tabs.Tab>
    ```typescript
    import { apiKit } from './setup.ts'

    const safeAddress = '0x...'
    const options = {
      module: '0x...',
      limit: 10,
      offset: 10
    }

    const moduleTxs = await apiKit.getModuleTransactions(safeAddress, options)
    ```
  </Tabs.Tab>
  <Tabs.Tab>
    ```typescript
    import SafeApiKit from '@safe-global/api-kit'

    // How to get an Api key => http://docs.safe.global/core-api/how-to-use-api-keys
    export const apiKit = new SafeApiKit({
      chainId: 1n, // Mainnet
      apiKey: 'YOUR_API_KEY'
    })
    ```
  </Tabs.Tab>
</Tabs>


## Returns

`Promise<SafeModuleTransactionListResponse>`

The history of Safe transactions triggered by a module.

## Parameters

### `safeAddress`

- **Type:** `string`

The Safe address.

```typescript focus=2
const moduleTxs = await apiKit.getModuleTransactions(
  '0x...'
)
```

### `options.module` (Optional)

- **Type:** `string`

The module to get the transactions from.

### `options.limit` (Optional)

- **Type:** `number`

The number of results to return per page.

### `options.offset` (Optional)

- **Type:** `number`

The initial index from which to return the results.
