> ## 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.

# useProviderName

```ts theme={null}
function useProviderName(): string;
```

Hook to access the provider name from a component.

## Returns

`string`

The provider name.

## Example

```tsx lines theme={null}
const MyComponent = () => {
  const providerName = useProviderName();
  return <div>{providerName}</div>;
}

function App() {
  return (
    <CDPReactProvider name="provider-instance" config={config}>
      <MyComponent />
    </CDPReactProvider>
  );
}
```
