Import
Signature
Register a custom Algorand network (e.g. LocalNet or private network). Computes the CAIP-2 identifier, updates NETWORK_CONFIGS, GENESIS_HASH_TO_NETWORK, and SUPPORTED_NETWORKS.

Parameters

str | bytes
required
32-byte genesis hash (base64 string or raw bytes).
str
default:"''"
Genesis ID string (e.g. “dockernet-v1”).
str | None
default:"None"
Algod endpoint URL (defaults to “http://localhost:4001”).
str | None
default:"None"
Indexer endpoint URL (defaults to “http://localhost:8980”).

Returns

str
The registered CAIP-2 network identifier.
Source: x402_algorand/utils.py