Hook for retrieving chain configuration information
Parameter | Type | Description |
---|---|---|
chainId | number | undefined | Optional chain ID to get configuration for a specific chain. If not provided, returns the current chain’s configuration. |
Chain | undefined
The hook returns a Chain
object from wagmi’s chain configurations or undefined
if the chain is not found.
number
The unique identifier of the blockchain network.
string
The human-readable name of the blockchain network.
string
The network identifier string.
object
Information about the chain’s native currency.
object
URLs for connecting to the network’s RPC endpoints.
object | undefined
Information about block explorers for the chain.
This hook provides easy access to chain configuration information from wagmi’s chain configurations. It’s particularly useful when you need to:
The hook is commonly used in conjunction with other Sequence hooks when working with transactions, indexer clients, or network-specific features.
Hook for retrieving chain configuration information
Parameter | Type | Description |
---|---|---|
chainId | number | undefined | Optional chain ID to get configuration for a specific chain. If not provided, returns the current chain’s configuration. |
Chain | undefined
The hook returns a Chain
object from wagmi’s chain configurations or undefined
if the chain is not found.
number
The unique identifier of the blockchain network.
string
The human-readable name of the blockchain network.
string
The network identifier string.
object
Information about the chain’s native currency.
object
URLs for connecting to the network’s RPC endpoints.
object | undefined
Information about block explorers for the chain.
This hook provides easy access to chain configuration information from wagmi’s chain configurations. It’s particularly useful when you need to:
The hook is commonly used in conjunction with other Sequence hooks when working with transactions, indexer clients, or network-specific features.