Active Network id
The active network id is the id that the Dynamic SDK uses to identify the active network of a wallet account. For EVM wallets, it will be the same as the chain id (e.g: 1, 137, 56, etc). For other chains, it will an internal id used in Dynamic. To get a more complete network data, you can use thegetActiveNetworkData function mentioned further down in this page.
Active Network Data
The active Network Data is the data that the Dynamic SDK uses to identify the active network of a wallet account. The NetworkData object contains useful information about the network, such as the id, name, icon, rpc urls, currency data, etc. You can use the active network data create a PublicClient for EVM accounts or a Connection for Solana accounts.React
Both functions are async and are typically called insideuseEffect or event handlers. Re-fetch whenever the active wallet or network changes: