Import
Signature
"mainnet" or "testnet" to canonical
short CAIP-2 identifiers ("algorand:<32-char-prefix>"). Normalizes legacy
long IDs ("algorand:<44-char-hash>"). When given "localnet" or its aliases,
queries the provided algod_client (or the default localnet endpoint) to
derive and register the network configuration dynamically.
Parameters
Pre-configured
algosdk.v2client.algod.AlgodClient instance. Used
to query genesis parameters when resolving "localnet".Returns
Raises
UnknownNetworkError: (aValueError) If the network name cannot be resolved or is invalid.
Examples
See also
endpoints_for: Resolves connection endpoints for the network.genesis_hash_for: Returns the full 44-character base64 genesis hash.