Skip to main content
Returns the current network ID as a decimal string.

Parameters

No parameters.

Returns

string
The network ID as a decimal string. "8453" for Base Mainnet, "84532" for Base Sepolia.

Example