# `getSafeDelegates`

Returns the list of delegates for a given Safe address.

## Usage


<Tabs items={['example.ts', 'setup.ts']}>
  <Tabs.Tab>
    ```typescript
    import { GetSafeDelegateProps } from '@safe-global/api-kit'
    import { apiKit } from './setup.ts'

    const config: GetSafeDelegateProps = {
      safeAddress: '0x...', // Optional
      delegateAddress: '0x...', // Optional
      delegatorAddress: '0x...', // Optional
      label: 'abc', // Optional
      limit: '10', // Optional
      offset: '50' // Optional
    }

    const delegates = await apiKit.getSafeDelegates(config)
    ```
  </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<SafeDelegateListResponse>`

The list of delegates.

## Parameters

### `config.safeAddress` (Optional)

- **Type:** `string`

The Safe address.

```typescript focus=2
const delegates = await apiKit.getSafeDelegates({
  safeAddress: '0x...'
})
```

### `config.delegateAddress` (Optional)

- **Type:** `string`

The delegate address.

```typescript focus=2
const delegates = await apiKit.getSafeDelegates({
  delegateAddress: '0x...'
})
```

### `config.delegatorAddress` (Optional)

- **Type:** `string`

The delegator address.

```typescript focus=2
const delegates = await apiKit.getSafeDelegates({
  delegatorAddress: '0x...'
})
```

### `config.label` (Optional)

- **Type:** `string`

The custom label.

```typescript focus=2
const delegates = await apiKit.getSafeDelegates({
  label: 'abc'
})
```

### `config.limit` (Optional)

- **Type:** `string`

The number of results returned per page.

```typescript focus=2
const delegates = await apiKit.getSafeDelegates({
  limit: '10'
})
```

### `config.offset` (Optional)

- **Type:** `string`

The initial index from which to return the results.

```typescript focus=2
const delegates = await apiKit.getSafeDelegates({
  offset: '50'
})
```
