Avalanche
Avalanche
Avalanche
الخطة المجانية تغطي المشاريع الشخصية. الدفع حسب الاستخدام يتوسع دون بطاقة.
net_version returns the network ID of the chain a node is connected to, as a decimal string. For Avalanche C-Chain mainnet — the EVM chain where AVAX pays for gas, secured by Snowman/Avalanche consensus — the network ID is "43114", matching its chain ID 43114 (0xa86a). It is a fast way to confirm an endpoint really is the network you expect before you trust its data or send transactions. Send the request to https://avalanche.therpc.io/YOUR_API_KEY and check the returned string.
"43114") before submitting an AVAX transaction, guarding against accidentally broadcasting to the wrong 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 Avalanche playground.
43114), but that is not universal — on some networks they differ. For transaction signing and replay protection, always derive the value from eth_chainId rather than net_version."43114"), not a hex quantity — unlike most other numeric JSON-RPC responses such as net_peerCount. Parse it as base 10, not hex.