Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 457 Bytes

useChain.md

File metadata and controls

26 lines (19 loc) · 457 Bytes

useChain

This hook provides data regarding the current user network and all the supported chains the user has passed to the KitProvider wrapper.

Usage

import { useChain } from '@nazeeh2000/comp-kit'

const Comp = () => {
   const { currentChain } = useChain();

  return (
  // Your component
  )
}

Return Values

const {
  currentChain,
  supportedChains, // returns an array of Chains of type Chain[]
} = useChain();