๐Ÿ‡บ๐Ÿ‡ฒ
Broearn Wallet Documentation
CtrlK
  • ๐ŸงฌOVERVIEW
    • ๐Ÿ’กWhat is Broearn Wallet?
    • ๐Ÿ›ก๏ธSecurity
    • ๐Ÿ“‹Available Networks
      • Parallel Universe Chain
      • Bitcoin
      • Ethereum
      • BNB Chain
      • Tron
      • Solana
      • OKX Chain
      • Optimism
      • Fantom
      • Ethereum Classic
      • Polygon
      • Avalanche
  • ๐Ÿ›ธPUT
    • Extension & in Broearn app
      • Events
        • Disconnect
        • Accounts Changed
    • Detecting the Provider
  • Establishing a Connection
  • PROVIDER METHODS
    • Connect
    • Disconnect
    • SignMessage
    • SignTransaction
    • SignAllTransactions
    • SignAndSendTransaction
  • ๐Ÿ”นETHEREUM & EVM
    • Getting Started with Ethereum and EVM
    • Detecting the Provider
    • Establishing a Connection
    • Sending a Transaction
    • Signing a Message
    • Provider API Reference
      • Properties
        • eth_chainId
        • eth_networkVersion
        • eth_selectedAddress
        • _events
        • _eventsCount
      • Events
        • Connect
        • Accounts Changed
        • Disconnect
        • Chain Changed
      • Methods
        • isConnected
        • request
  • Demo Applications
  • ๐Ÿ“œERRORS
  • ADVANCED
    • Auth
      • Web Javascript demo
      • Web Java
      • Web Golang
      • Web PHP
  • COMMUNITY AND SUPPORT
    • ๐ŸฆTwitter
    • โœˆ๏ธTelegram
    • ๐ŸŽฎDiscord
Powered by GitBook
On this page
  1. ๐Ÿ”นETHEREUM & EVM
  2. Provider API Reference
  3. Properties

eth_networkVersion

window.bw.eth.networkVersion

The network number of the blockchain that you are connected to. This property is available for legacy purposes. It is recommended that modern dapps refer to the chainId property to determine what chain a user is connected to currently.

const networkVersion = window.bw.eth.networkVersion;
console.log(networkVersion);
// "1"
// Ethereum Mainnet's Network Version
Previouseth_chainIdNexteth_selectedAddress

Last updated 2 years ago