> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloud.coinbase.com/llms.txt
> Use this file to discover all available pages before exploring further.

# useConfig

```ts theme={null}
function useConfig(): {
  config: Config;
};
```

Hook to get the CDP being used by the SDK.

## Returns

```ts theme={null}
{
  config: Config;
}
```

| Name     | Type     |
| -------- | -------- |
| `config` | `Config` |

## Example

```tsx lines theme={null}
function App() {
  const { config } = useConfig();

  return (
    <div>
      <p>Project ID: {config.projectId}</p>
    </div>
  );
}
```
