Skip to content
Logo

useChainId

Usage

import {  } from "@cartesi/wagmi";
 
function () {
  const { ,  } = ({});
  // render logic
}

Return Type

The data is the chain ID (number):

import type {  } from "@cartesi/viem";