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
boolean
true
false
Was this page helpful?