Skip to main content
The isBase utility is designed to verify if the chain ID is a valid Base or Base Sepolia chain ID.

Parameters

number
required
The chain ID to verify. For example, 8453 for Base Mainnet or 84532 for Base Sepolia.

Returns

boolean
Returns true if the chain ID is Base or Base Sepolia, otherwise false.

Usage