Import
Signature
Normalize network identifier to CAIP-2 format.

Parameters

str
required
Network identifier (V1 name, legacy long CAIP-2, or short CAIP-2).

Returns

str
CAIP-2 network identifier.

Raises

  • NetworkError: If network is not supported or invalid format (subclass of ValueError).

Examples

Source: x402_algorand/utils.py