Skip to main content
Defined in: guardrails/normalize.ts:39 Converts a network identifier to its canonical CAIP-2 form. Accepts CAIP-2 strings ("eip155:8453") and legacy short forms ("base", "base-sepolia", "solana-devnet", …).

Parameters

network

string The network identifier to normalize.

Returns

`${string}:${string}` The canonical CAIP-2 network identifier.

Throws

"network_not_allowed" if the input is not recognized.