# Global context

The GlobalContext object contains information on the currently authenticated user and their wallet, the currently connected blockchain as well as an interface for accessing push notifications.

export interface Wallet {
  isAuthenticated: boolean
  client: WalletClient
  address: string
  addressTruncated: string
}

export interface GlobalContextValue {
  wallet?: Wallet
  ably?: Ably.Types.RealtimePromise
  chain: ReturnType<typeof useNetwork>['chain']
}

The context is accessed through the useGlobalContext() hook as such:

const Comp = () => {
  const globalContextValue = useGlobalContext();
  // ...
}