Base
Base
Base
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
net_version returns the network ID of the chain a node is connected to, as a decimal string. Base is Coinbase's OP Stack optimistic rollup that settles to Ethereum and pays gas in ETH, and on Base mainnet the network ID matches its chain ID — "8453". This call is the quickest way to confirm a node is pointed at the network you expect before you trust its responses. Send it to https://base.therpc.io/YOUR_API_KEY on chain ID 8453 (hex 0x2105) and read back the decimal string.
"8453" — before submitting an ETH transaction, guarding against sending to the wrong chain."8453") from Base Sepolia ("84532") in environment-aware logic, so your app loads the right contract addresses and explorer links per network.هذا الأسلوب لا يأخذ أي معاملات. مرر مصفوفة فارغة [].
| النوع | الوصف |
|---|---|
| string | Decimal string network ID, e.g. `"1"` for Ethereum mainnet. Note: network ID and chain ID coincide on most networks but can differ. |
Try it live in the Base playground.
8453), but they are distinct concepts and can diverge on some networks. For EIP-155 transaction signing always use the chain ID from eth_chainId, not the value from net_version.net_version returns a decimal string ("8453"), unlike most numeric RPC responses on Base which are hex-encoded (eth_chainId returns "0x2105"). Do not assume a 0x prefix when parsing it.