Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
isEthereum
import { isEthereum } from '@coinbase/onchainkit'; // Ethereum Mainnet (chain ID: 1) isEthereum({ chainId: 1 }); // returns true // Ethereum Sepolia (chain ID: 11155111) isEthereum({ chainId: 11155111 }); // returns true // Base (chain ID: 8453) isEthereum({ chainId: 8453 }); // returns false
true; // When chainId is 1 (Ethereum Mainnet) or 11155111 (Ethereum Sepolia) false; // For all other chain IDs
boolean
true
false
Was this page helpful?