Built-in Networks
The 14 preloaded networks and the BUILTIN_NETWORKS registry (NetworkConfig type) — Ethereum, Base, BNB Chain, Arbitrum, Optimism, HyperEVM, Robinhood Chain, their testnets, and the three Solana clusters.
Every workspace opens with 14 networks already loaded — eleven EVM networks and three Solana clusters. The same set is reachable two ways: as typed static constants on the Network class (Network.Ethereum, Network.Base, …), and as the BUILTIN_NETWORKS registry keyed by slug. Both come from the main entry:
import { Network, BUILTIN_NETWORKS } from "wative-core";
import type { NetworkConfig } from "wative-core";Network.<Name> statics
Each accessor is a shared, read-only Network instance. They are the same objects a fresh workspace loads, so ws.networks.bySlug("base") and Network.Base describe the same chain (though a workspace may override any of them locally with update()).
| Static | Slug | Name | Chain id | VM | Symbol |
|---|---|---|---|---|---|
Network.Ethereum | ethereum | Ethereum | 1 | evm | ETH |
Network.Base | base | Base | 8453 | evm | ETH |
Network.BnbChain | bnbchain | BNB Chain | 56 | evm | BNB |
Network.Arbitrum | arbitrum | Arbitrum | 42161 | evm | ETH |
Network.ArbitrumSepolia | arbitrum-sepolia | Arbitrum Sepolia | 421614 | evm | ETH |
Network.Optimism | optimism | OP Mainnet | 10 | evm | ETH |
Network.Sepolia | sepolia | Sepolia | 11155111 | evm | ETH |
Network.HyperEVM | hyperevm | HyperEVM | 999 | evm | HYPE |
Network.HyperEVMTestnet | hyperevm-testnet | HyperEVM Testnet | 998 | evm | HYPE |
Network.Robinhood | robinhood | Robinhood Chain | 4663 | evm | ETH |
Network.RobinhoodTestnet | robinhood-testnet | Robinhood Chain Testnet | 46630 | evm | ETH |
Network.Solana | solana | Solana | 7565164 | svm | SOL |
Network.SolanaTestnet | solana-testnet | Solana Testnet | 7565166 | svm | SOL |
Network.SolanaDevnet | solana-devnet | Solana Devnet | 7565165 | svm | SOL |
Network.Ethereum.chainId; // 1
Network.ArbitrumSepolia.chainId; // 421614
Network.Solana.vm; // "svm"
Network.Base.symbol; // "ETH"The Network class also exposes a few helpers over this set:
| Member | Signature | Returns |
|---|---|---|
Network.builtin | builtin(slug: Slug) | The built-in Network for that slug, or null. |
Network.all | all() | readonly Network[] — every built-in. |
Network.isBuiltinSlug | isBuiltinSlug(slug: Slug) | boolean — whether the slug names a built-in. |
BUILTIN_NETWORKS
BUILTIN_NETWORKS is a frozen Record<string, NetworkConfig> keyed by slug — the plain-data source the static constants are built from. Use it when you want the configuration values without constructing a Network:
BUILTIN_NETWORKS["base"].chainId; // 8453
BUILTIN_NETWORKS["solana"].vm; // "svm"
Object.keys(BUILTIN_NETWORKS).length; // 14NetworkConfig
interface NetworkConfig {
readonly slug: string;
readonly name: string;
readonly chainId: number;
readonly vm: ChainVM;
readonly rpcUrl: string;
readonly nativeCurrency: {
readonly name: string;
readonly symbol: string;
readonly decimals: number;
};
}BUILTIN_NETWORKS and its entries are frozen. To customize a built-in — a different RPC URL, for example — construct a new Network and register it with workspace.networks.update(), as shown in Networks. Do not mutate the registry.
Solana chain ids (changed in 2.4.7)
Solana has no EIP-155-style chain-id space, so the library assigns each cluster a stable numeric id for lookups such as byChainId:
| Cluster | Slug | Chain id |
|---|---|---|
| Solana | solana | 7565164 |
| Solana Testnet | solana-testnet | 7565166 |
| Solana Devnet | solana-devnet | 7565165 |
The built-in Solana, Solana Testnet, and Solana Devnet networks report new chain ids as of 2.4.7. If you look a Solana network up by chain id, read the id from the resolved network rather than assuming an earlier value.