Actions20
- Block Number
- Chain ID
- Gas Price
- Get Balance
- Get Block by Hash
- Get Block by Number
- Get Block Tx Count by Hash
- Get Block Tx Count by Number
- Get Code
- Get My Balance
- Get Transaction by Block Hash and Index
- Get Transaction by Block Number and Index
- Get Transaction by Hash
- Get Transaction Count
- Get Transaction Receipt
- Get Uncle Count by Block Hash
- Get Uncle Count by Block Number
- Help
- Peer Count
- Syncing
Chain ID
AI-generatedSummary
Retrieves the network identifier for a configured Ethereum chain to determine replay protection compatibility.
Inputs
- network (required) — Select the target network (mainnet or Sepolia).
Output shape
a single record containing the chain ID (hexadecimal string) for the selected network.
The chain ID is returned as a hexadecimal string, e.g., '0x1' for Mainnet.
Examples
Example 1: Determine the Chain ID for the Ethereum Mainnet
Set Network to 'mainnet' and execute the node.
Example 2: Determine the Chain ID for the Sepolia testnet
Set Network to 'sepolia' and execute the node.