Skip to main content

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.

function useProviderName(): string;
Hook to access the provider name from a component.

Returns

string The provider name.

Example

const MyComponent = () => {
  const providerName = useProviderName();
  return <div>{providerName}</div>;
}

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