Actions53
- Account Actions
- Block Actions
- Transaction Actions
- Contract Actions
- ERC20 Actions
- ERC721 Actions
- ERC1155 Actions
- Gas Actions
- Signature Actions
- Utils Actions
- Custom RPC Actions
Utils → Get Chain ID
AI-generatedSummary
Retrieves the configured blockchain's chain ID.
Inputs
None.
Output shape
a single integer representing the chain ID
The ID is returned as a number; if no chain is configured, the value may be null or omitted.
Examples
Example 1: Determine which network the node is connected to (e.g., mainnet, goerli)
No parameters needed; operation returns the chain ID from the node's configuration.
Example 2: Validate that the node's RPC endpoint matches the expected network
Use the returned ID to cross‑check against known chain IDs.