useNetwork

Hook for accessing the current connected chain.

The network object contains information about the network.

Examples

This example shows how to display the current network name.