Skip to content

useProvider

Hook for accessing the current provider.

Usage

import { useProvider } from "@starknet-react/core";
 
const { provider } = useProvider();

Returns

provider

  • Type: ProviderInterface

The current provider.