useChainMetadata
ChainMetadata.
import { useChainMetadata } from "thirdweb/react"; const { data: chainMetadata } = useChainMetadata( defineChain(11155111),); console.log("Name:", chainMetadata.name); // Sepoliaconsole.log("Faucets:", chainMetadata.faucets); // ["https://thirdweb.com/sepolia/faucet"]console.log("Explorers:", chainMetadata.explorers); // ["https://sepolia.etherscan.io/"]
function useChainMetadata(
Chain to retrieve metadata for, see defineChain for how to create a chain from a chain ID.
A React Query result containing the chain metadata,