getChainId
Returns the chain ID associated with the current network
Usage
import { } from './client'
const = await .()
1Returns
number
The current chain ID.
JSON-RPC Method
- Calls
eth_chainId.
Returns the chain ID associated with the current network
import { } from './client'
const = await .()
1number
The current chain ID.
eth_chainId.